hello all
i am just getting started with vb and cant figure out how to have the enter key change the tab order i have to enter data and then click on next data box with mouse there must be a better way
thanks john
Printable View
hello all
i am just getting started with vb and cant figure out how to have the enter key change the tab order i have to enter data and then click on next data box with mouse there must be a better way
thanks john
hmm... just wondering, why aren't you using the tab key to go through the boxes? would make a lot more sense than having to write code to make it work with the enter key instead...
is there a reason why you aren't using the tab key? is there a problem with it or something?
if you aren't sure, the TAB key will cycle through the tab order... sorry if i'm insulting your intelligence but i really dunno why you are needing to use the enter key...
hello lithia
the tab key does work, i just thought once i enter data the enter key should then work, also i have the following code
if txtname.text="" then
else: messagebox.show("enter name")
end if
it doesnt seem to work properly the messagebox shows but it doesnt seem to let me enter a whole name but the messagebox shows at every keystroke what am i missing
thanks john
acutualy i need to check for a specicif username and password
thanks john
Quote:
Originally posted by jwisneski
hello lithia
the tab key does work, i just thought once i enter data the enter key should then work, also i have the following code
if txtname.text="" then
else: messagebox.show("enter name")
end if
it doesnt seem to work properly the messagebox shows but it doesnt seem to let me enter a whole name but the messagebox shows at every keystroke what am i missing
thanks john
acutualy i need to check for a specicif username and password
thanks john
VB Code:
'put it in keydown event of the textbox. keypreview = true 'in keydown event if e.keycode = keys.enter then if txtname.text = "" then messagebox.show("you must enter your name") end if end if