Groups | Blog | Home
all groups > vb.net data > january 2007 >

vb.net data : How can I enable the Enter key



Ivan Jericevich
1/24/2007 11:14:44 PM
I am building my first program in VB 2005 Express Edition and considering
I'm a BBC quite chuffed with my progress. All the data entries work off the
TAB Key in run mode, how do I get the ENTER or RETURN Key to do the same. It
is totaly disabled.

Michel Posseth [MCP]
2/10/2007 10:35:18 AM
Hello Ivan


Well actually this is pretty simple , set the keypreview property of the
form to true , now in the forms keypress or keydown event trap the return
key and then send a tab ( with sendkeys )
now the return key will behave as if it is the tab key

regards

Michel posseth



"Ivan Jericevich" <ivan@oberon.co.za> schreef in bericht
news:OJMM8x$PHHA.1756@TK2MSFTNGP05.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button