Tab Control

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

    #1

    Tab Control

    Hiya All

    I have a tab Control with 5 tabs (index 0 - 4)

    I have disabled tabs 1-4 & just left 0 enabled. How do I click on something
    like a button on tab 0 which then brings tab1 into view/focused?

    Tabs 0-4 are all visible. The button on Tab 0 will enable the other tabs,
    but I also need it to select tab 1

    I am using VB.NET 2003

    TIA


  • Herfried K. Wagner [MVP]

    #2
    Re: Tab Control

    "Newbie Coder" <newbie_coder@p leasespamme.com schrieb:
    I have a tab Control with 5 tabs (index 0 - 4)
    >
    I have disabled tabs 1-4 & just left 0 enabled. How do I click on
    something
    like a button on tab 0 which then brings tab1 into view/focused?
    Check out the control's 'SelectedIndex'/'SelectedTab' properties.

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

    Comment

    • Cor Ligthert [MVP]

      #3
      Re: Tab Control

      Hi,

      Everything you wanted to know about the tabcontrol



      Cor

      "Newbie Coder" <newbie_coder@p leasespamme.com schreef in bericht
      news:OxSy7IvHHH A.1784@TK2MSFTN GP06.phx.gbl...
      Hiya All
      >
      I have a tab Control with 5 tabs (index 0 - 4)
      >
      I have disabled tabs 1-4 & just left 0 enabled. How do I click on
      something
      like a button on tab 0 which then brings tab1 into view/focused?
      >
      Tabs 0-4 are all visible. The button on Tab 0 will enable the other tabs,
      but I also need it to select tab 1
      >
      I am using VB.NET 2003
      >
      TIA
      >
      >

      Comment

      • Newbie Coder

        #4
        Re: Tab Control

        Thanks Cor

        "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
        news:OsA3Q9zHHH A.1240@TK2MSFTN GP03.phx.gbl...
        Hi,
        >
        Everything you wanted to know about the tabcontrol
        >

        >
        Cor
        >
        "Newbie Coder" <newbie_coder@p leasespamme.com schreef in bericht
        news:OxSy7IvHHH A.1784@TK2MSFTN GP06.phx.gbl...
        Hiya All

        I have a tab Control with 5 tabs (index 0 - 4)

        I have disabled tabs 1-4 & just left 0 enabled. How do I click on
        something
        like a button on tab 0 which then brings tab1 into view/focused?

        Tabs 0-4 are all visible. The button on Tab 0 will enable the other
        tabs,
        but I also need it to select tab 1

        I am using VB.NET 2003

        TIA
        >
        >

        Comment

        • Newbie Coder

          #5
          Re: Tab Control

          Herfried

          Your suggestion doesn't work

          Thanks though

          "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atwrot e in message
          news:%23FHPMqvH HHA.816@TK2MSFT NGP06.phx.gbl.. .
          "Newbie Coder" <newbie_coder@p leasespamme.com schrieb:
          I have a tab Control with 5 tabs (index 0 - 4)

          I have disabled tabs 1-4 & just left 0 enabled. How do I click on
          something
          like a button on tab 0 which then brings tab1 into view/focused?
          >
          Check out the control's 'SelectedIndex'/'SelectedTab' properties.
          >
          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
          >

          Comment

          • Mick Doherty

            #6
            Re: Tab Control

            How did you try to implement Herfried's suggestion?

            ....to select the TabPage at Index 1 assuming your TabControl is named
            TabControl1:

            TabControl1.Sel ectedIndex = 1

            --
            Mick Doherty
            Dotnetrix offers Nothing. Standard and Premium versions available.



            "Newbie Coder" <newbie_coder@p leasespamme.com wrote in message
            news:eAQ5F13HHH A.2632@TK2MSFTN GP06.phx.gbl...
            Herfried
            >
            Your suggestion doesn't work
            >
            Thanks though
            >
            "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atwrot e in message
            news:%23FHPMqvH HHA.816@TK2MSFT NGP06.phx.gbl.. .
            >"Newbie Coder" <newbie_coder@p leasespamme.com schrieb:
            I have a tab Control with 5 tabs (index 0 - 4)
            >
            I have disabled tabs 1-4 & just left 0 enabled. How do I click on
            something
            like a button on tab 0 which then brings tab1 into view/focused?
            >>
            >Check out the control's 'SelectedIndex'/'SelectedTab' properties.
            >>
            >--
            > M S Herfried K. Wagner
            >M V P <URL:http://dotnet.mvps.org/>
            > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
            >>
            >
            >

            Comment

            • Mick Doherty

              #7
              Re: Tab Control

              ....except this.

              See my response above.

              --
              Mick Doherty
              Dotnetrix offers Nothing. Standard and Premium versions available.



              "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
              news:OsA3Q9zHHH A.1240@TK2MSFTN GP03.phx.gbl...
              Hi,
              >
              Everything you wanted to know about the tabcontrol
              >

              >
              Cor
              >
              "Newbie Coder" <newbie_coder@p leasespamme.com schreef in bericht
              news:OxSy7IvHHH A.1784@TK2MSFTN GP06.phx.gbl...
              >Hiya All
              >>
              >I have a tab Control with 5 tabs (index 0 - 4)
              >>
              >I have disabled tabs 1-4 & just left 0 enabled. How do I click on
              >something
              >like a button on tab 0 which then brings tab1 into view/focused?
              >>
              >Tabs 0-4 are all visible. The button on Tab 0 will enable the other tabs,
              >but I also need it to select tab 1
              >>
              >I am using VB.NET 2003
              >>
              >TIA
              >>
              >>
              >
              >

              Comment

              Working...