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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Order on Form Changing

Status
Not open for further replies.

ScottMcVt

Programmer
Apr 11, 2001
8
US
I've got a form that has some textboxes and labels inside a container. I have set the tab order (tabindex property) of each object. I have an Edit button on the form which sets focus to the first textbox in the tab order. This all works fine. However, if I pull up the form in design mode and then simply re-save the form, the next time the form runs and I click on the Edit button, the focus gets set to the wrong textbox. To fix it, I have to remove the textboxes and copy/paste them from a saved form that works correctly. Does re-saving a form possibly change the record order in the SCX file? This is very bizzare! Any clues.

Thanks,
Scott McWherter
 
This looks bizarre !!!

Instead of cut/paste etc... you can click the 'SET TAB ORDER' button in the form designer toolbar and click on the controls in the order you want, starting from the first tab. Then when you recomiple the application, select 'regenerate component ids' so that all the form contents are recopiled. [If for any reason, the system date is improper and the modifications are not properly generated, you could be sitting on an old piece of compiled codes.]

Hope this fixes the problem.

ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
I should clarify that I'm not running an app. I'm running the form from the command window. Also, I have used the "set tab order" button to order the objects. I simply use the "cut/paste" to get back to square one with a form that works. (Actually I am have saved the working form to another filename and copy it back each time.)

Thanks,
Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top