Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question regarding tab order problems.

Status
Not open for further replies.

CHeighlund

Programmer
Jun 11, 2007
163
US
In a project I'm working on, I have a set of thirteen components with tabstop set to true. Of these components, ten of them are on a panel; the other three are set directly on the form.

I need to be able to set the tab order properties in a logical order on my screen. Also, to avoid a recently-discovered in-program error, I need to be able to set one of the items on the panel as the absolute last item in the order. (It was formerly first, but this caused a loss of data when re-entering the form, due to an associated onexit event.)

My logical values for the tab order would be order my items as 0 - 12. However, any time I attempt to give my last item listing a value of twelve (or higher!), it automatically reverts to a tab order value of eleven. (I already have another component set to tab order = 11; apparently it has no problem showing both of them.) Does anyone know what might be causing this, and where I should be looking in order to set the value correctly?

Please note: I have other items with the 'tab order' property, but all of those but two are invisible (and those two will join them once testing is over), and none of the others has tabstop = true. Could this still be affecting the tab order for my defined components?
 
You're aware that all the controls directly on the form, including the panel, are in one tab-order queue. The controls on the panel are in their own tab-order queue. You can't break this (i.e., jump in and out of the panel) just by setting tab-orders.
 
I was not aware of this; thank you for the warning.

This whole thing turns out not to be needed; I managed to find the error I'd been missing, so tab order is now no longer as important. I apologize for bringing it up, because of that. Still, I thank you again for your assistance; it will be helpful in the future to know that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top