lothos123452000 Posted March 15, 2007 Posted March 15, 2007 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. Quote
Leaders snarfblam Posted March 16, 2007 Leaders Posted March 16, 2007 It should be as simple as setting the TabControl.SelectedTabPage to the newly created tab page. Could we see the problematic code? Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.