Home All Groups Group Topic Archive Search About
Author
19 Nov 2007 8:52 PM
John Wright
I have a tab control that has 5 tabpages on it.  When the user clicks the
tab page to bring it forward, what event is fired?  I have tried click,
GotFocus but the code does not fire unless I click on the TabPage itself.
Also, when a user logs in, I validate them against our database to allow
them access to certain tabs.  When they log in, I want to set the focus to
that tab.  Anyone know how to set the focus on a tabpage programmatically
and run the code for that tab page in its gotfocus event?

Thanks.

Author
19 Nov 2007 9:28 PM
Stephany Young
1.  SelectedIndexChanged

2.  SelectedTab = <tabpage>

3.  Call the relevant method


Show quoteHide quote
"John Wright" <riley_wrig***@hotmail.com> wrote in message
news:O6MxT4uKIHA.4272@TK2MSFTNGP06.phx.gbl...
>I have a tab control that has 5 tabpages on it.  When the user clicks the
>tab page to bring it forward, what event is fired?  I have tried click,
>GotFocus but the code does not fire unless I click on the TabPage itself.
>Also, when a user logs in, I validate them against our database to allow
>them access to certain tabs.  When they log in, I want to set the focus to
>that tab.  Anyone know how to set the focus on a tabpage programmatically
>and run the code for that tab page in its gotfocus event?
>
> Thanks.
>