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

Tab Control Set Focus

Status
Not open for further replies.

bigpapi

Programmer
Aug 1, 2006
16
CA
I need to set the focus on a field in my tab control on the third tab.


this is the code i'm trying to use, but i can't get it to work.
Example:
tab_folder.tabpage_1.dw_1.object.fieldname.setfocus()



All i need to do is give focus to any field on my data window on the third tab of a tab control.

thanks in advance
 
I guess I'm a little late here but just in case...

I think what you are looking for is "SelectedTab". You can set this property in the painter on the "General" tab or you can set it in code using:

tab_1.SelectedTab = 3

 
after tab_1.SelectedTab = 3
try to use post before setfocus()
tab_folder.tabpage_1.dw_1.object.fieldname.post setfocus()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top