How to pass the control from tabcontrol's tabpage1 to tabpage2 I have an application in which the tabpage1 contains the user login. If the user name and password are correct, i want to show the tabpage2. How to acheive this in windows application using c#

please help

Re: Visual C# General Help - using tabcontrol

Andrej Tozon


to change the current tab page, use one of the following methods:

change SelectedIndex property: tabControl1.SelectedIndex = 1;


set currently selected tab: tabControl1.SelectedTab = tabPage2;