All you need to do is copy and past the segment of code below into the keypress event of the control.
If Asc(e.KeyChar) = Keys.Enter Then e.Handled = True
That's it, I hope you find it useful... |
|
Tutorials > VB Tutorials >
Trap The Enter Key In VB.Netposted Jan 14, 2010 8:33 PM by Tim Key [ updated Jan 14, 2010 8:36 PM ]
|