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 ProcessDialogKe y(ByVal keyData As
System.Windows. Forms.Keys) As Boolean
'MyBase.Process DialogKey(keyDa ta)
End Function
Private Sub Form1_KeyDown(B yVal sender As Object, ByVal e As
System.Windows. Forms.KeyEventA rgs) 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.ProcessD ialogKey(MyKey)
'e.Handled = True '<---I tried it
here also
End Sub
TIA
Bob
XP but windows 2000 is ding ding ding
Here is my code:
Protected Overrides Function ProcessDialogKe y(ByVal keyData As
System.Windows. Forms.Keys) As Boolean
'MyBase.Process DialogKey(keyDa ta)
End Function
Private Sub Form1_KeyDown(B yVal sender As Object, ByVal e As
System.Windows. Forms.KeyEventA rgs) 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.ProcessD ialogKey(MyKey)
'e.Handled = True '<---I tried it
here also
End Sub
TIA
Bob
Comment