Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7769801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:14:53+00:00 2026-06-01T16:14:53+00:00

Previously I had one form and TabOrder was easy. Now we have moved part

  • 0

Previously I had one form and TabOrder was easy. Now we have moved part of the controls in that form to a separate .NET custom control and we are hosting that custom control inside the previous form
So now some of the buttons are still are the main form and the rest of the form is inside that custom control and it has cause a Change in TabOrder of the controls.
How can I fix this so the TabOrder will behave the same as it used to be?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:14:55+00:00Added an answer on June 1, 2026 at 4:14 pm

    Let me expand on my comment as I just imagined how tab order might be confusing when a control container is involved.

    Let’s say we have six buttons (A, B, C, D, E, and F):

        Z
    A B | C D | E F
    

    (I know it’s a lousy diagram, but I can’t do a nice one quick and dirty)

    A, B, E, and F are directly on your Form’s surface.
    C and D are contained in a user control named Z.

    If you want the tab order to follow the alphabetic sequence, you would set TabIndex values like this:

    A = 0
    B = 1
    Z = 2
    E = 3
    F = 4
    
    C = 0
    D = 1
    

    Tabbing for a control container is relative to the controls inside. The algorithm is fairly simple: When TAB is pressed, the Framework looks for the next control in the sequence(*). So A tabs to B and B tabs to Z. Z is a container, so focus goes to the ‘first’ child C. C tabs to D. D tabs out of the container resuming where we left off with E. E tabs to F. F tabs out of its container which is the top-level container so we start all over again, F tabs to A.

    (*) There can be gaps in the sequence and if there are two items with the same TabIndex, they are further evaluated by their Z-Order index.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

previously i had custom tableviewcell and was loading from Nib.in that i have specified
I have a single page site that utilizes tabs - It previously had one
I have an application that uses CoreData. I previously had a class named Marker
i have a controller function that previously had integers as each section in the
I have a base form that I use when calling 2 forms. Previously when
In a previous job we had a classic ASP application that no one wanted
I previously had a table that is created using hibernate entities. I am using
I previously had a post on this issue that was resolved. However since rebuilding
I have a follow-up question regarding an issue I previously had on SO here
Previously we had desktop applications but given the fact that accessing the server (either

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.