Reputation: 3
I have Form1
Form1
contains TabControl1
which has 7 TabPages. (TabPage1, TabPage2, ... TabPage7)
I also have Button1
How can I show TabPage4
when I click on Button1
?
Upvotes: 0
Views: 53
Reputation: 54417
Handle the Click
event of the Button
and, in the event handler, set the SelectedIndex
or Selectedtab
property of the TabControl
.
Upvotes: 1