How to tab and setfocus form form header to detail

chrisjames25

Registered User.
Local time
Today, 14:01
Joined
Dec 1, 2014
Messages
404
Hi

Having problems with a form. I cant seem to figure out how to smotothly tab from the header of the form to the detail section. Im assuming it is possible but i just tab in circles around my header rather than jumping down to the detail section.

Also when i click a command button in the header and ask it to setfocus to a textbox in the detail section nothign happens.

Just doing the generic

Code:
textbox.setfocus
 
all controls have a tab index, starting with zero and go up.
so if you are in control with 0 , hitting tab will move to 1, etc.

but setfocus should move directly to that control.
 
all controls have a tab index, starting with zero and go up.
so if you are in control with 0 , hitting tab will move to 1, etc.

but setfocus should move directly to that control.
Correct - but Form header, Detail section, Form footer have their own tab index.
If you want to tab from the Form header to Detail section, you've to write some code attached to the last control in the Form header, that will set the focus on the first control in the Detail section.
chrisjames25: The code you show to set focus on a control looks okay.
Code:
[B]Me.[/B]textbox.setfocus
 

Users who are viewing this thread

Back
Top Bottom