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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Avoid duplicated code 3
Copy of a control 6
TabControl - First Event 1
TableLayoutPanel and TabControl 0
TabControl question. 2
TabControl query 2
Tab Control - Block CTRL+Tab 17
Initializing DataGridView selection 0

Back
Top