unique1984
unique1984

Reputation: 91

Return selected tabpage name

How can I get the name of a selected tabpage?

Upvotes: 5

Views: 15960

Answers (2)

mesutpiskin
mesutpiskin

Reputation: 1937

its work

TabControl1.TabPages[TabControl1.SelectedIndex].Name.ToString();

Upvotes: 1

Lewray
Lewray

Reputation: 1174

You can access the name through the tab control which contains the tab page.

string name = tabControl1.SelectedTab.Name;

Upvotes: 17

Related Questions