Tab Control Question

J

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.
 
S

Stephany Young

1. SelectedIndexChanged

2. SelectedTab = <tabpage>

3. Call the relevant method
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top