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!

To setfocus to tabpage2

Status
Not open for further replies.

jancypaul

Programmer
Aug 3, 2007
20
GB
Hi all,

Please help me to get setfocus to tabpage 2. I had given the following ways but
it is not working.

this.tab_analysis.selecttab( 2)
this.tab_analysis.tp_sumanalysis.setfocus( ).

Please help

with thanks

Polachan

 
Try simply setting the focus to the tab control...

tab_analysis.SelectTab( 2 )
tab_analysis.SetFocus( )

This will set the focus to the control, so you can select the other tabs. I'm guessing you're probably aiming at setting focus to a specified control on the tabpage though...

tab_analysis.SelectTab( 2 )
tab_analysis.tabpage_SumAnalysis.SomeControl.SetFocus( )

This will allow tabbing through the objects on that tabpage.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top