473,387 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Darn Ding

Bob
I'm trying to prevent the beep when the tab key is pressed. It works ok on
XP but windows 2000 is ding ding ding

Here is my code:

Protected Overrides Function ProcessDialogKey(ByVal keyData As
System.Windows.Forms.Keys) As Boolean
'MyBase.ProcessDialogKey(keyData)
End Function

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
Dim MyKey As System.Windows.Forms.Keys
If e.KeyCode = Keys.Down Then
MyKey = Keys.Tab
ElseIf e.KeyCode = Keys.Tab Then
MyKey = Keys.Tab
e.Handled = True '<---Here I
tried to handle it but still.
ElseIf e.KeyCode = Keys.Up Then
MyKey = Keys.Shift + Keys.Tab
End If
MyBase.ProcessDialogKey(MyKey)
'e.Handled = True '<---I tried it
here also
End Sub

TIA

Bob
Nov 21 '05 #1
6 1966
I've never heard of windows 2000 making a ding noise when tabbing. What
custom code do you have in your forms for key handlers and such? You have to
have something in there that is causeing this noise to execute, because a
standard brand new form with two text boxes on it in windows 2000 when
tabbing makes no noise.
"Bob" <no****@nospammers.com> wrote in message
news:z1iTe.20288$cy4.441@trnddc05...
I'm trying to prevent the beep when the tab key is pressed. It works ok on
XP but windows 2000 is ding ding ding

Here is my code:

Protected Overrides Function ProcessDialogKey(ByVal keyData As
System.Windows.Forms.Keys) As Boolean
'MyBase.ProcessDialogKey(keyData)
End Function

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
Dim MyKey As System.Windows.Forms.Keys
If e.KeyCode = Keys.Down Then
MyKey = Keys.Tab
ElseIf e.KeyCode = Keys.Tab Then
MyKey = Keys.Tab
e.Handled = True '<---Here I
tried to handle it but still.
ElseIf e.KeyCode = Keys.Up Then
MyKey = Keys.Shift + Keys.Tab
End If
MyBase.ProcessDialogKey(MyKey)
'e.Handled = True '<---I tried it
here also
End Sub

TIA

Bob

Nov 21 '05 #2
if this is tabbing between items like this, make sure you are handleing all
the objects too if you expect key down and key up to tab also, because
pressing down and up on a text box that doesnt have it handled on that box
too will cause this beep. handleing it on the form only isn't enough, the
objects need to handle it also.
Nov 21 '05 #3
Bob
Brian:
What custom code do you have in your forms for key handlers and such?
Protected Overrides Function ProcessDialogKey(ByVal keyData As
System.Windows.Forms.Keys) As Boolean
'MyBase.ProcessDialogKey(keyData)
End Function

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
Dim MyKey As System.Windows.Forms.Keys
If e.KeyCode = Keys.Down Then
MyKey = Keys.Tab
ElseIf e.KeyCode = Keys.Tab Then
MyKey = Keys.Tab
e.Handled = True
ElseIf e.KeyCode = Keys.Up Then
MyKey = Keys.Shift + Keys.Tab
End If
MyBase.ProcessDialogKey(MyKey)
'e.Handled = True
End Sub
if this is tabbing between items like this, make sure you are handleing
all the objects too if you expect key down and key up to tab also, because
pressing down and up on a text box that doesnt have it handled on that box
too will cause this beep. handleing it on the form only isn't enough, the
objects need to handle it also.


How can I handle it for all the objects without doing it for each object
individualy? I have 327 fields on my form so handling each one would be
quite a task if I have to do them each individualy. I don't get the beep
when I use the up and down arrow.

TIA

Bob
Nov 21 '05 #4
I was also annoyed by the Beep feature of Windows2000. You can disable the
Beep by:

On the Desktop, Right-Click on 'My Computer.'
Select 'Properties'.
Click the 'Hardware' tab.
Click on the 'Device Manager...' button.
Click on the 'View' menu.
Verify 'Show Hidden Devices' is checked.
Scroll Down Device Manager unto 'Non-Plug and Play Drivers' and expand the
tree.
Right-Click on the 'Beep' Driver.
Select 'Properties'.
On the 'General' tab, under 'Device usage',
Select 'Do not use this device (Disable)' in the combo box.
Click OK.
The system will ask for a reboot.

No more beeps should occur.

The Beep can also be re-Enabled in much the same way.
The system will again ask for a reboot.

Hope this helps,

Mike
Nov 21 '05 #5
Bob
Mike:

Thanks. That did the trick. Thats the next thing I was looking to do but I
just couldn't find where to disable that darn ding in windows.

Thanks again

Bob
Nov 21 '05 #6
You could also stop and disable the "Beep" service using the Services applet
in the Control Panel.

"Bob" <no****@nospammers.com> wrote in message
news:6KyTe.3271$AB4.3199@trnddc03...
Mike:

Thanks. That did the trick. Thats the next thing I was looking to do but I
just couldn't find where to disable that darn ding in windows.

Thanks again

Bob

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Lochness | last post by:
I'm hoping someone can help me with this. I've seen and tried various solutions I've seen on the net, but nothing works. Of course it works perfectly on localhost, but when I upload it to the...
1
by: IWP506 | last post by:
Hello everyone. I'm having a problem with a php script that updates a news file for my website. Whenever I use a quote (either single or double) and view the news page, I get the \ escape...
0
by: Michele Simionato | last post by:
I posted this few weeks ago (remember the C Sharp thread?) but it went unnoticed on the large mass of posts, so let me retry. Here I get Python+ Psyco twice as fast as optimized C, so I would like...
2
by: Al Reid | last post by:
I'm using vb2005. The users want to use the enter key to navigate instead of or in addition to the tab key. That's easy enough. How do I get rid of the ding when hitting the enter key. I have...
4
by: George | last post by:
Hi, I am puzzled by the following and seeking some assistance to help me understand what happened. I have very limited encoding knowledge. Our SAP system writes out a text file which includes...
3
by: Lee | last post by:
Hi, I am displaying a messagebox using;- MessageBox.Show("blurb", "more blurb", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) it works ok, and when it shows there is a ding sound, how...
1
by: Cub71 | last post by:
How can I avoid a "ding" when enter is pressed in a textbox with multiline == false?
3
by: AmaraEmerson | last post by:
I've got a treeview with some items, and I want to catch the keydown events to check if the enter key is pressed. I'm doing this with the treeview's keydown event. However, every time enter key is...
2
by: jiayanxiang | last post by:
Is there some way to programmatically turn off the "Ding" sound when the user presses Enter in a text field?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.