Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Tab Control

Tab Control

Scheduled Pinned Locked Moved C#
databasehelpquestion
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aruna_koride
    wrote on last edited by
    #1

    I am developing an application in VS2003, using a tabcontrol with collection of 5 tabpages, onload I have tabpage1 as main menu, on mainmenu I want picture boxes to link to other tab pages,I have linked the picture box click event to tabPage show method, but not working. note: If I moved the tabpage 1(main menu) to last index then its working.. Does the tabPage index and click events are related? Please help me. Aruna

    A 1 Reply Last reply
    0
    • A aruna_koride

      I am developing an application in VS2003, using a tabcontrol with collection of 5 tabpages, onload I have tabpage1 as main menu, on mainmenu I want picture boxes to link to other tab pages,I have linked the picture box click event to tabPage show method, but not working. note: If I moved the tabpage 1(main menu) to last index then its working.. Does the tabPage index and click events are related? Please help me. Aruna

      A Offline
      A Offline
      Andrew Lygin
      wrote on last edited by
      #2

      You should set tabControl.SelectedIndex instead of using tabPage.Show() method.

      B A M 3 Replies Last reply
      0
      • A Andrew Lygin

        You should set tabControl.SelectedIndex instead of using tabPage.Show() method.

        B Offline
        B Offline
        Brendan Vogt
        wrote on last edited by
        #3

        Hey, How would I implement a tab control in VS2005? I don't think there is a tabbed control in .NET 2.0?? Cheers.

        A 1 Reply Last reply
        0
        • B Brendan Vogt

          Hey, How would I implement a tab control in VS2005? I don't think there is a tabbed control in .NET 2.0?? Cheers.

          A Offline
          A Offline
          Andrew Lygin
          wrote on last edited by
          #4

          ma se wrote:

          I don't think there is a tabbed control in .NET 2.0??

          You can find it on the "All Windows Forms" tab in the Toolbox.

          B 1 Reply Last reply
          0
          • A Andrew Lygin

            ma se wrote:

            I don't think there is a tabbed control in .NET 2.0??

            You can find it on the "All Windows Forms" tab in the Toolbox.

            B Offline
            B Offline
            Brendan Vogt
            wrote on last edited by
            #5

            Sorry, I meant for web applications. Everyone says that I must use the multi view control, or something like that.

            1 Reply Last reply
            0
            • A Andrew Lygin

              You should set tabControl.SelectedIndex instead of using tabPage.Show() method.

              A Offline
              A Offline
              aruna_koride
              wrote on last edited by
              #6

              Thanks again, your code is working fine

              1 Reply Last reply
              0
              • A Andrew Lygin

                You should set tabControl.SelectedIndex instead of using tabPage.Show() method.

                M Offline
                M Offline
                Mairaaj Khan
                wrote on last edited by
                #7

                Thanks Andrew Lygin. Its solved my problem too. :-D Regards.

                _____________________________ Success is not something to wait for, its something to work for.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups