MSDN also has VB sample code which implements an addin to the VB6 IDE, which
allows you to manipulate a form's tab order by visually ordering the list of
controls on the form. You can find it here (watch word wrap):
http://msdn.microsoft.com/library/default.asp?url=/library/en-/vb98/html/vbp
roTabOrderTabOrdervbp.asp
--
Jeff Mason Custom Apps, Inc.
Jeff@c...
-----Original Message-----
From: Peter N. Kipe [mailto:pkipe@c...]
Sent: Friday, January 24, 2003 4:32 PM
To: professional vb
Subject: [pro_vb] RE: A Friday Question
You don't really want to turn it off, you want to set the tab order
correctly. Here's an easy way to do it:
With the form open and visible in the IDE, click on the last control that
should be able to receive focus (normally something like a Close button at
the extreme lower-right corner of the form). Then click the Control's
TabIndex property and type 0. Click on the next previous control that
should be able to receive focus, and this time just type 0 -- the TabIndex
property will be changed to zero, and the TabIndex property for the
previously set control will be incremented by one. Continue working
backwards through the form in this manner until you have set the TabIndex
for the first control on the form. Run the app, click the first control,
then press the tab key to see focus move through the form in the exact
sequence you set.
Pete
-----Original Message-----
From: mmorgan63@c... [mailto:mmorgan63@c...]
Sent: Friday, January 24, 2003 9:04 PM
To: professional vb
Subject: [pro_vb] A Friday Question
Greetings All;
I don't know what logic VB uses for auto-setting the tab order of
controls; but I don't like it (I'm guessing because I don't understand it).
Is there anyway to turn it off?
Thanks
Matt