|
-
Sep 28th, 2004, 07:18 AM
#1
Thread Starter
Lively Member
tab order
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
-
Sep 28th, 2004, 07:30 AM
#2
Fanatic Member
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...
-
Sep 28th, 2004, 12:53 PM
#3
Thread Starter
Lively Member
reply
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
-
Sep 28th, 2004, 08:05 PM
#4
Re: reply
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|