in my application i have a tabcontrol with two tabs.
when i run the program the focus is on the first tab.

how can i change the focus to the second tab, so the second tab is shown on certain event ?

Recommended Answers

All 3 Replies

In form load event handler tabControl1.SelectedTab = tabControl1.TabPages[1]; it's zero based.

great.
thanks man.

is it same with
tabControl1.SelectTab(1);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.