Return selected tabpage name

unique1984 picture unique1984 · Aug 23, 2010 · Viewed 13.4k times · Source

How can I get the name of a selected tabpage?

Answer

Lewray picture Lewray · Aug 23, 2010

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

string name = tabControl1.SelectedTab.Name;