We are using web browser control in our application using C# 2.0. Whenever we perform a click action on any of the tab on tabcontrol, we are unable to find out that particular tab element e.g. If tabcontrol has a set of say 5 tabs and we click on tab 3, then we are unable to identify which is the selected tab, because the it returns the whole composite control.
Let us know if any one has any idea on it. Your help would be deeply appreciated.

Satish KathiPosted Jul 31, 2008, 3:02 PM
You can use SelectedTab Property of the TabControl.
For example if I want to display Name of the Selected Tab, when I click on the TabControl
private void tabControl1_Click(object sender, EventArgs e)
{
textBox1.Text = tabControl1.SelectedTab.Name;
}