|
-
Jan 15th, 2000, 06:40 AM
#1
Thread Starter
Hyperactive Member
How does one control the sequence in which the [TAB] key moves from control to control?
I have a form with three text boxes, six option buttons, and two command buttons. I want the [TAB] key to go Text1, Text2, Option Buttons (in a frame), Text3, Command1, Command2.
Please help.
Thanks,
Al.
ps. Is it just me or is the time on this BB an hour off?
------------------
A computer is a tool, not a toy.
<A HREF="mailto:[email protected]
[email protected]">[email protected]
[email protected]</A>
-
Jan 15th, 2000, 06:46 AM
#2
Fanatic Member
You set it with the TabIndex property, starting at 0 (of course)
------------------
r0ach(tm)
-
Jan 15th, 2000, 06:48 AM
#3
Lively Member
to met his board is way off
But then I live in England
-
Jan 15th, 2000, 06:49 AM
#4
Fanatic Member
Code:
Text1.TabIndex = 0
Text2.TabIndex = 1
.
.
.
Option6.TabIndex = 7
Text3.TabIndex = 8
'etc
------------------
r0ach(tm)
-
Jan 15th, 2000, 07:27 AM
#5
Thread Starter
Hyperactive Member
Hey rOach,
Thanks. I should have known it was that simple.
I'm new to forms and only six months into VB. All my programs for the past six months have been formless.
Thanks again,
Al.
------------------
A computer is a tool, not a toy.
<A HREF="mailto:[email protected]
[email protected]">[email protected]
[email protected]</A>
-
Jan 15th, 2000, 07:32 AM
#6
-
Jan 15th, 2000, 10:02 AM
#7
Hyperactive Member
r0ach way is to set Tab Index Property at run time.
To set it at design time you can clik on the last control you want to stop, press F4 and set Tab property to 0.
Then proceed back way to the first control, setting always Tab property to 0. This sounds weird but is the recommended procedure. VB always rearrange the Tab property so when you reach the first control, all ar set OK.
As for the time: I copied/pasted this from VB-World page:
"All times are ET (US). All dates are in Month-Day-Year format."
[This message has been edited by Juan Carlos Rey (edited 01-15-2000).]
-
Jan 15th, 2000, 10:24 AM
#8
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
|