I have looked at other posts and the only thing I could find is
references to a textbox instead of a numericupdown control. They
suggests that I use the e.Handled = True in the keypress event to get
rid of that. However this does not work. Do I have to do something
different with a numericupdown control?
Here is a copy of the code that I am using.
Private Sub UpDown9am_KeyPress(ByVal sender As Object, ByVal e As
KeyPressEventArgs) Handles UpDown9am.KeyPress
If e.KeyChar = ChrW(Keys.Return) Then
SendKeys.Send("{TAB}")
e.Handled = True
End If
End Sub
I am using vb.net in visual studio 2005 on an XP machine.
Private Sub UpDown9am_KeyDown(ByVal sender As Object, ByVal e As
KeyEventArgs) Handles UpDown9am.KeyDown
If e.KeyCode = Keys.Enter Then
e.Handled = True
SendKeys.Send("{TAB}")
End If
End Sub
I have also tried taking e.Handled = True out of it and I still get
the same error sound.
> > I am using vb.net in visual studio 2005 on an XP machine.- Hide quoted text -
>
> - Show quoted text -
> > > - Show quoted text -- Hide quoted text -
UpDown9am.SelectNextControl
e.SuppressKeyPress = True