Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a windows application in vb.net. in which i placed a TabControl with two tabPages. In First TabPage I placed a button..now i want when i click on this button the second Tabpage should be opened.Kindly help me with the code...
Posted

If u want to hide or show a tab page , that's not possible. If u want just to select the next tab page on the button click then ,I hope this will help you.
tabControl1.SelectedTab() = TabPage2
 
Share this answer
 
Comments
Dalek Dave 30-Aug-10 8:20am    
good call
What have you tried ? Did you read any documentation ? Did you google for help ? Do you own any books ?
 
Share this answer
 
A simple Google gave this:
TabControl Class[^]

You can see the sample how you can access controls of tab pages and use the control events.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900