Reputation: 91
How can I get the name of a selected tabpage?
Upvotes: 5
Views: 15960
Reputation: 1937
its work
TabControl1.TabPages[TabControl1.SelectedIndex].Name.ToString();
Upvotes: 1
Reputation: 1174
You can access the name through the tab control which contains the tab page.
string name = tabControl1.SelectedTab.Name;
Upvotes: 17