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

TabControl program automate TabPage Focus and Visibility ?

Status
Not open for further replies.

ELLIES3T

Programmer
Jul 10, 2002
1
GB
I'm trying to trigger a TabPage to change, or to lose visibility within a program. Focus() and Hide() don't seem to have any effect although the code compiles OK ...

Has anyone had any success with doing this automatically.

I'm using Remove() where required, but I want to make pages disappear temporarily ...
 
Try calling SelectedTab on your TabControl to set the active page to a page other than the one you want to remove. Then Remove your tab from the TabPages collection.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top