tabControl

  • Thread starter Thread starter Wndr
  • Start date Start date
W

Wndr

Hi.
I have a tab control with 3 tabs. The first tab has a button.
Is there anyway when I press this button the third tab will be selected, I
tried tabControl_Click event to call from the Button_click event, but it
did't work.
Thanks in advance.
 
I have a tab control with 3 tabs. The first tab has a button.
Is there anyway when I press this button the third tab will be selected, I
tried tabControl_Click event to call from the Button_click event, but it
did't work.

Try setting the SelectedTab property.

Learn what event handlers are for. tabControl_Click is called IN RESPONSE TO
a tab being clicked. It does not CAUSE the click.
 
Back
Top