Tab Control and Tab Pages

lothos123452000

Newcomer
Joined
Dec 20, 2006
Messages
19
I have created and application in visual basic.net with a tab control on the main form. I am dynamically adding tabpages to this control as needed when the application is running. I want the newly created tabpage to be the top one/the selected one. Though no matter what I try every time a new page is added to the tabcontrol it defaults to the first page. How can I Correct this programmtically using visual basic.net 2003. So the page that is selected is the one just added. Any help offered is greatly appreciated.
 
It should be as simple as setting the TabControl.SelectedTabPage to the newly created tab page. Could we see the problematic code?
 
Back
Top