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 Order

Tab Order

Scheduled Pinned Locked Moved C#
helpquestiondatabase
5 Posts 3 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.
  • D Offline
    D Offline
    DougW48
    wrote on last edited by
    #1

    I've got a Form that I created that has roughly 30 controls that I need to tab through. I set the Tab Index of each control accordingly, but the tab NEVER follows this order. I'm not doing anything fancy to the controls such as handling events. It almost looks like the form is tabbing through the controls in the order which I added them to the form. On a hunch, I even tried rearranging the initialization in the Component Designer Generated code so that they even appeared in the code in the correct order, but this still didn't help. Has anybody else ever had this problem? How can I take care of it? Would appreciate the help! Thanks :-D

    L 1 Reply Last reply
    0
    • D DougW48

      I've got a Form that I created that has roughly 30 controls that I need to tab through. I set the Tab Index of each control accordingly, but the tab NEVER follows this order. I'm not doing anything fancy to the controls such as handling events. It almost looks like the form is tabbing through the controls in the order which I added them to the form. On a hunch, I even tried rearranging the initialization in the Component Designer Generated code so that they even appeared in the code in the correct order, but this still didn't help. Has anybody else ever had this problem? How can I take care of it? Would appreciate the help! Thanks :-D

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Set the tabindex AFTER you have added the tab page to the tab control :)

      top secret AdvancedTextBox

      D 1 Reply Last reply
      0
      • L leppie

        Set the tabindex AFTER you have added the tab page to the tab control :)

        top secret AdvancedTextBox

        D Offline
        D Offline
        DougW48
        wrote on last edited by
        #3

        no no, it's not a tab control. It is a bunch of text and combo boxes that refuse to tab in the order I set the TabIndexes. Sorry for the confusion.

        H 1 Reply Last reply
        0
        • D DougW48

          no no, it's not a tab control. It is a bunch of text and combo boxes that refuse to tab in the order I set the TabIndexes. Sorry for the confusion.

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          In Visual Studio .NET, use the View TabOrder menu item to set these. This should also change the order in which the controls are added using the AddRange method of their container control's Controls collection property.

          Microsoft MVP, Visual C# My Articles

          D 1 Reply Last reply
          0
          • H Heath Stewart

            In Visual Studio .NET, use the View TabOrder menu item to set these. This should also change the order in which the controls are added using the AddRange method of their container control's Controls collection property.

            Microsoft MVP, Visual C# My Articles

            D Offline
            D Offline
            DougW48
            wrote on last edited by
            #5

            Thank you, I appreciate the response! :)

            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