Navigate from TabPage1 to TabPage2 Help

G

Guest

Hi,
I have a TabControl that has 1 TabPages on it.
I would like to have a button on TabPage1 that goes to TabPage2. Kinda like
a Next> button.

I can get this to work using the .BringToFront and .Show methods, but the
Tab at the top doesn't change.

How do I get the tab at the top to be the active tab?

Thank you
Ron.
 
H

Herfried K. Wagner [MVP]

Capt_Ron said:
I have a TabControl that has 1 TabPages on it.
I would like to have a button on TabPage1 that goes to TabPage2. Kinda
like
a Next> button.

Set the tabcontrol's 'SelectedTab' or 'SelectedIndex' property accordingly.
 

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


Top