Does anyone know how to get the enter key working in vb 2005 beta 2 ????
i'm working on a browser and i want it so it will navigate when pressing enter but nothing works.
CyberOps
is there anyone who can help me with this ????
CyberOps
CyberOps -
The easiest way to do this is to use an event handler on the KeyDown event. You can find this in the Properties Window, by clicking on the lightning bolt at the top of the window. If you have your form selected in the WinForms designer, this will show all the events that are available on the form to hook an event handler up to. Find the KeyDown event in this list and double-click the region beside it to create the event handler in your code. Then add the following inside the newly created method:
If e.KeyCode = Keys.Enter Then
MessageBox.Show(
"Hello") End If
Thanks, Luke Hoban Visual C# IDE Program Manager
Luke Hoban
I tried doing that but it wont work any idea why ?? am i something missing or do i have to turn something else on ? otherkeys however do work but the enter key doesn't