textbox keypress event beeping ?!?!?!
Posted on 2007-03-20
I have two panels: one being a search panel & one holding a datagrid.
I have put a keypress event on the one text field ....
Private Sub txtIDnum_KeyPress(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs)
If e.KeyChar = Chr(13) Then
When I press the Enter key, the customer search works fine, but its beeping as if it's erroring out somewhere. If I press the Search button though, no beeps.
The odd thing is that on my "login" form, I do the very same thing and I have no problem ... the only difference is that when i do the keypress event on the login form, all it does is close that one and open the main form whereas the even i'm having trouble with just populates and displays a datagrid on a different panel.
Any help would be greatly appreciated! :)
- Travis -