Navigate from TabPage1 to TabPage2 Help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Capt_Ron

    Navigate from TabPage1 to TabPage2 Help

    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.
  • Herfried K. Wagner [MVP]

    #2
    Re: Navigate from TabPage1 to TabPage2 Help

    "Capt_Ron" <CaptRon@discus sions.microsoft .com> schrieb:[color=blue]
    > 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.[/color]

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

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    Working...