Tab order and form inheritance - problem

D

dbuchanan

I have discovered that setting tab order of controls is not as simple
as it first appears.

I am inheriting a base class for several of my forms.

I have two different base class forms. They inherit tab order
differently. In one case the base class tab order is marked read only
when the form is in tab order edit mode. It looks like this [5 - Read
Only]. On other forms the base class tabs are no different from the
derived class tab numbers.

However, here is the problem: I cannot control tab order. I am
frustrated.

Description:
Yes the form follows the tab numbers, but there are two sets of tab
numbers. One set of numbers from the base class form and the other set
of numbers from the derived class form. The tab sequence therefore
alternates back and forth between the two sets of numbers. Therefore I
have no control of the tab order.

What do I do to get the tab order I want?

Help?

Thank you,
Doug
 
G

Guest

I find there's a lot of problems when using visual inheritance.
I find doing a full rebuild or even closing the solution and reopening it
can sometimes update everthing and stop it being read only.
Its worth a try just to make sure its not a Visual Studio glitch.
 
G

Guest

....once when I had this problem I hadn't noticed Visual Studio had quietly
slipped a task into my task list telling me the solution needed rebuilding.
 
D

dbuchanan

My question has to do with Tab Order and Tab Stops *Not* TabPages.
Though your reply is useful to me it does not answer the question that
I posed.

How do I get the tab order (the order in which the tab key cycles
through the controls) that I want without writing a hundred more lines
of code to meticulously define TabStop and TabIndex for every label,
textbox, checkbox, etc. on my form?

Please read my original post for more information.

Thank you,
Doug
 
D

dbuchanan

I have been opening and closing, building and rebuilding this
application for various reasons over the last several days and the
situation has not changed.

So... I went ahead and reluctantly hard coded the tabStops and
tabIndexes.

Thank you for your input.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top