B
Brett Romero
I have a tab control with seven tabs. I need to do certain things when
a user clicks each tab. I'm doing this:
private void tabControl1_Click(object sender, EventArgs e)
{
if(tabControl1.SelectedIndex == 0)
{...do something...}
else if (tabControl1.SelectedIndex == 6)
{...do something...}
.....
}
and so on for all tabs. That or switches will work but isn't very
intuitive. Is there some other common way of doing this?
Thanks,
Brett
a user clicks each tab. I'm doing this:
private void tabControl1_Click(object sender, EventArgs e)
{
if(tabControl1.SelectedIndex == 0)
{...do something...}
else if (tabControl1.SelectedIndex == 6)
{...do something...}
.....
}
and so on for all tabs. That or switches will work but isn't very
intuitive. Is there some other common way of doing this?
Thanks,
Brett