Re: Problem with TabOrder in VB6
- From: WonderMan <none@xxxxxxxx>
- Date: Tue, 18 Mar 2008 14:42:04 +0100
Le 18/03/2008, Jan Hyde (VB MVP) a supposé :
WonderMan <none@xxxxxxxx>'s wild thoughts were released on
Tue, 18 Mar 2008 10:44:54 +0100 bearing the following fruit:
Hello,
I am working on an app written in VB6.
I try to set the tab-order properties of the controls embedded in a form on the following way : (the form is a login form, with one text zone for user name and one text zone for password, and two buttons (OK and Cancel))
- txtUserName TabIndex = 0, TabStop = true
- txtPasswordValue TabIndex = 1, TabStop = true
- btnOK TabIndex = 2, TabStop = true
- btnCancel TabIndex = 3, TabStop = true
But when I run the programme, and use the form, the tabOrder goes to :
txtUserName
btnOK
btnCancel
txtPasswordValue
So my question is how to set correctly the tabOrder in my form.
FYI, when I try to use the "Tabulation Assistant" included in VB6, I notice that I get a yellow triangle with an exclamation mark next to each control of the form (indicating an error). Can that explain why the TabOrder does not work properly ? What kind of errors are there in the controls then ?
Do you mean the "TabIndex Assistant" that comes with
MZTools? If not where do I access the "Tabulation
Assistant"?
From what you've said everything is set correctly. That
means either what you're telling us just isn't so, or
something else (possibly in code) is causing the problem.
I take it you are running the project in the IDE when you
see this problem? In which case, check what the tabindexes
are when it's running.
Thank you fro your answer.
Sorry for the multipost.
Maybe the "Tabindex Assistant" comes with MZTools as I have installed the MZTools (but I am not familiar with VB6).
I tried to put a MsgBox in the Change event of each of my 2 text zones, and I found that when running the application, and modifying the content of txtUserName, its TabIndex value is 1 (I set it to 0 before running the app). And for the txtPasswordValue, the TabIndex is 0 (I set it to 1 before running the app) ...
.
- References:
- Problem with TabOrder in VB6
- From: WonderMan
- Re: Problem with TabOrder in VB6
- From: Jan Hyde (VB MVP)
- Problem with TabOrder in VB6
- Prev by Date: Re: Problem with TabOrder in VB6
- Next by Date: Re: Problem with TabOrder in VB6
- Previous by thread: Re: Problem with TabOrder in VB6
- Next by thread: Re: Problem with TabOrder in VB6
- Index(es):