Tab Order with Panels 
Author Message
 Tab Order with Panels

Problem:
     I'm having a huge problem with the Tab order from one
panel to the next.  On one panel I have 2 textboxes which
tab one to the next fine.  After I tab out of the second
text box I would like to tab to a button on another panel.
   Patteren would be something like this:  Panel1, txtBox,
txtBox, Panel2, button, button, and then back to panel1.  
I am working with multiple panels with multiple controls
on each of them, so there is more then 2 panels on my
form, I just need to use those 2.
   I know this maybe a simple question, but it is giving
me alot of grieve, so if anyone out there could please
help.  OR if anyone knew where I may find information on
this subject.  It seems that each panel has its own tab
order level and does not see the other panels.

Thank You
Cynthia



Mon, 29 Nov 2004 23:56:38 GMT  
 Tab Order with Panels
Cynthia,

I placed four panels on a Form, put two Textboxes in Panel 1, two Buttons in
Panel two, one Button in panel three, and one Button in Panel4. Next I set
the TabStop property of the Buttons in Panel 3 and Panel 4 to False, and
everything works as advertised.... Tabbing moves from Textbox1 to Textbox2
to Button1 to Button2 and then back to Textbox1. Are you using the Focus
statement anywhere in your code?

Laurens


Quote:
> Problem:
>      I'm having a huge problem with the Tab order from one
> panel to the next.  On one panel I have 2 textboxes which
> tab one to the next fine.  After I tab out of the second
> text box I would like to tab to a button on another panel.
>    Patteren would be something like this:  Panel1, txtBox,
> txtBox, Panel2, button, button, and then back to panel1.
> I am working with multiple panels with multiple controls
> on each of them, so there is more then 2 panels on my
> form, I just need to use those 2.
>    I know this maybe a simple question, but it is giving
> me alot of grieve, so if anyone out there could please
> help.  OR if anyone knew where I may find information on
> this subject.  It seems that each panel has its own tab
> order level and does not see the other panels.

> Thank You
> Cynthia



Tue, 30 Nov 2004 01:26:35 GMT  
 Tab Order with Panels

Laurens,
    Thank you for your reply, but I worded a few things
wrong on my post.  There are more then just 2 buttons on
that panel.  Lets use the example you had sent me about
the four panels.  Lets say Panel2 has 4 or 5 buttons
instead of 2. Now lets Say panel1 has 3 text boxes. What I
want to do is tab to textbox1 then textbox2 on panel1 then
tab to panel2 and tab to button 2 then tab to button 4 and
then tabing back to panel 1 and landing on lets say
textbox3.  
    I am probably missing something and when I had read
the .Net framework help on the topic, they have a phrase
that states "TabIndex: Tab order of the control within its
container"  I have come to the conclusion that you can tab
in an order in one panel container then step over to
another, but you can't order the controls on the panels to
a certain order you want them in.  EG. TextBox1 tab to
Button 2 on Panel2, tab to TextBox 3 on Panel1, and then
tab to Button 4 on Panel2.
     In VB 6 you could tab to any controls within
containers on the form it didn't matter as long as you set
up the TabIndex of the control to what order you wanted it
in.

Any solutions I am open to or information
Thanks again

Cynthia

Quote:
>-----Original Message-----
>Cynthia,

>I placed four panels on a Form, put two Textboxes in

Panel 1, two Buttons in
Quote:
>Panel two, one Button in panel three, and one Button in
Panel4. Next I set
>the TabStop property of the Buttons in Panel 3 and Panel
4 to False, and
>everything works as advertised.... Tabbing moves from

Textbox1 to Textbox2
Quote:
>to Button1 to Button2 and then back to Textbox1. Are you
using the Focus
>statement anywhere in your code?

>Laurens



>> Problem:
>>      I'm having a huge problem with the Tab order from
one
>> panel to the next.  On one panel I have 2 textboxes
which
>> tab one to the next fine.  After I tab out of the second
>> text box I would like to tab to a button on another
panel.
>>    Patteren would be something like this:  Panel1,
txtBox,
>> txtBox, Panel2, button, button, and then back to panel1.
>> I am working with multiple panels with multiple controls
>> on each of them, so there is more then 2 panels on my
>> form, I just need to use those 2.
>>    I know this maybe a simple question, but it is giving
>> me alot of grieve, so if anyone out there could please
>> help.  OR if anyone knew where I may find information on
>> this subject.  It seems that each panel has its own tab
>> order level and does not see the other panels.

>> Thank You
>> Cynthia

>.



Tue, 30 Nov 2004 02:00:19 GMT  
 Tab Order with Panels
Ah, I think I see your point now. You want the taborder of all the controls
to be independent of the Panels they are situated on. This seems a bit odd
to me, why would you want to group controls on a panel and then change the
order in which the user tabs through them? I think this taborder behavior is
one of the great assets of the Panel.

However, if this is what you want, you can still achieve it by setting the
focus manually in the Leave events of the controls, but this seems like hard
work.

Laurens


Quote:

> Laurens,
>     Thank you for your reply, but I worded a few things
> wrong on my post.  There are more then just 2 buttons on
> that panel.  Lets use the example you had sent me about
> the four panels.  Lets say Panel2 has 4 or 5 buttons
> instead of 2. Now lets Say panel1 has 3 text boxes. What I
> want to do is tab to textbox1 then textbox2 on panel1 then
> tab to panel2 and tab to button 2 then tab to button 4 and
> then tabing back to panel 1 and landing on lets say
> textbox3.
>     I am probably missing something and when I had read
> the .Net framework help on the topic, they have a phrase
> that states "TabIndex: Tab order of the control within its
> container"  I have come to the conclusion that you can tab
> in an order in one panel container then step over to
> another, but you can't order the controls on the panels to
> a certain order you want them in.  EG. TextBox1 tab to
> Button 2 on Panel2, tab to TextBox 3 on Panel1, and then
> tab to Button 4 on Panel2.
>      In VB 6 you could tab to any controls within
> containers on the form it didn't matter as long as you set
> up the TabIndex of the control to what order you wanted it
> in.

> Any solutions I am open to or information
> Thanks again

> Cynthia

> >-----Original Message-----
> >Cynthia,

> >I placed four panels on a Form, put two Textboxes in
> Panel 1, two Buttons in
> >Panel two, one Button in panel three, and one Button in
> Panel4. Next I set
> >the TabStop property of the Buttons in Panel 3 and Panel
> 4 to False, and
> >everything works as advertised.... Tabbing moves from
> Textbox1 to Textbox2
> >to Button1 to Button2 and then back to Textbox1. Are you
> using the Focus
> >statement anywhere in your code?

> >Laurens



> >> Problem:
> >>      I'm having a huge problem with the Tab order from
> one
> >> panel to the next.  On one panel I have 2 textboxes
> which
> >> tab one to the next fine.  After I tab out of the second
> >> text box I would like to tab to a button on another
> panel.
> >>    Patteren would be something like this:  Panel1,
> txtBox,
> >> txtBox, Panel2, button, button, and then back to panel1.
> >> I am working with multiple panels with multiple controls
> >> on each of them, so there is more then 2 panels on my
> >> form, I just need to use those 2.
> >>    I know this maybe a simple question, but it is giving
> >> me alot of grieve, so if anyone out there could please
> >> help.  OR if anyone knew where I may find information on
> >> this subject.  It seems that each panel has its own tab
> >> order level and does not see the other panels.

> >> Thank You
> >> Cynthia

> >.



Tue, 30 Nov 2004 03:07:00 GMT  
 Tab Order with Panels
Laurens,

   Thank you again for your help in this matter, and yes I
do agree on your opion about the panels having grouping
the controls on them.  The only problem is the application
I am working on happens to be one of those special
application for a manufacturing company, so there is alot
going on, on the form itself.

   Hopefully I will be able to help you out in a problem
one day.

Cynthia

Quote:
>-----Original Message-----
>Ah, I think I see your point now. You want the taborder
of all the controls
>to be independent of the Panels they are situated on.

This seems a bit odd
Quote:
>to me, why would you want to group controls on a panel
and then change the
>order in which the user tabs through them? I think this

taborder behavior is
Quote:
>one of the great assets of the Panel.

>However, if this is what you want, you can still achieve
it by setting the
>focus manually in the Leave events of the controls, but

this seems like hard
Quote:
>work.

>Laurens



>> Laurens,
>>     Thank you for your reply, but I worded a few things
>> wrong on my post.  There are more then just 2 buttons on
>> that panel.  Lets use the example you had sent me about
>> the four panels.  Lets say Panel2 has 4 or 5 buttons
>> instead of 2. Now lets Say panel1 has 3 text boxes.
What I
>> want to do is tab to textbox1 then textbox2 on panel1
then
>> tab to panel2 and tab to button 2 then tab to button 4
and
>> then tabing back to panel 1 and landing on lets say
>> textbox3.
>>     I am probably missing something and when I had read
>> the .Net framework help on the topic, they have a phrase
>> that states "TabIndex: Tab order of the control within
its
>> container"  I have come to the conclusion that you can
tab
>> in an order in one panel container then step over to
>> another, but you can't order the controls on the panels
to
>> a certain order you want them in.  EG. TextBox1 tab to
>> Button 2 on Panel2, tab to TextBox 3 on Panel1, and then
>> tab to Button 4 on Panel2.
>>      In VB 6 you could tab to any controls within
>> containers on the form it didn't matter as long as you
set
>> up the TabIndex of the control to what order you wanted
it
>> in.

>> Any solutions I am open to or information
>> Thanks again

>> Cynthia

>> >-----Original Message-----
>> >Cynthia,

>> >I placed four panels on a Form, put two Textboxes in
>> Panel 1, two Buttons in
>> >Panel two, one Button in panel three, and one Button in
>> Panel4. Next I set
>> >the TabStop property of the Buttons in Panel 3 and
Panel
>> 4 to False, and
>> >everything works as advertised.... Tabbing moves from
>> Textbox1 to Textbox2
>> >to Button1 to Button2 and then back to Textbox1. Are
you
>> using the Focus
>> >statement anywhere in your code?

>> >Laurens



>> >> Problem:
>> >>      I'm having a huge problem with the Tab order
from
>> one
>> >> panel to the next.  On one panel I have 2 textboxes
>> which
>> >> tab one to the next fine.  After I tab out of the
second
>> >> text box I would like to tab to a button on another
>> panel.
>> >>    Patteren would be something like this:  Panel1,
>> txtBox,
>> >> txtBox, Panel2, button, button, and then back to
panel1.
>> >> I am working with multiple panels with multiple
controls
>> >> on each of them, so there is more then 2 panels on my
>> >> form, I just need to use those 2.
>> >>    I know this maybe a simple question, but it is
giving
>> >> me alot of grieve, so if anyone out there could
please
>> >> help.  OR if anyone knew where I may find
information on
>> >> this subject.  It seems that each p

{ w Q T DST TS,%  ? anel has its own tab

- Show quoted text -

Quote:
>> >> order level and does not see the other panels.

>> >> Thank You
>> >> Cynthia

>> >.

>.



Tue, 30 Nov 2004 03:22:58 GMT  
 Tab Order with Panels
Tab order is not global to the form, but local to the container.

You could try hooking each control's Leave event and manually set focus to
the control you want to go to...


Quote:

> Laurens,
>     Thank you for your reply, but I worded a few things
> wrong on my post.  There are more then just 2 buttons on
> that panel.  Lets use the example you had sent me about
> the four panels.  Lets say Panel2 has 4 or 5 buttons
> instead of 2. Now lets Say panel1 has 3 text boxes. What I
> want to do is tab to textbox1 then textbox2 on panel1 then
> tab to panel2 and tab to button 2 then tab to button 4 and
> then tabing back to panel 1 and landing on lets say
> textbox3.
>     I am probably missing something and when I had read
> the .Net framework help on the topic, they have a phrase
> that states "TabIndex: Tab order of the control within its
> container"  I have come to the conclusion that you can tab
> in an order in one panel container then step over to
> another, but you can't order the controls on the panels to
> a certain order you want them in.  EG. TextBox1 tab to
> Button 2 on Panel2, tab to TextBox 3 on Panel1, and then
> tab to Button 4 on Panel2.
>      In VB 6 you could tab to any controls within
> containers on the form it didn't matter as long as you set
> up the TabIndex of the control to what order you wanted it
> in.

> Any solutions I am open to or information
> Thanks again

> Cynthia

> >-----Original Message-----
> >Cynthia,

> >I placed four panels on a Form, put two Textboxes in
> Panel 1, two Buttons in
> >Panel two, one Button in panel three, and one Button in
> Panel4. Next I set
> >the TabStop property of the Buttons in Panel 3 and Panel
> 4 to False, and
> >everything works as advertised.... Tabbing moves from
> Textbox1 to Textbox2
> >to Button1 to Button2 and then back to Textbox1. Are you
> using the Focus
> >statement anywhere in your code?

> >Laurens



> >> Problem:
> >>      I'm having a huge problem with the Tab order from
> one
> >> panel to the next.  On one panel I have 2 textboxes
> which
> >> tab one to the next fine.  After I tab out of the second
> >> text box I would like to tab to a button on another
> panel.
> >>    Patteren would be something like this:  Panel1,
> txtBox,
> >> txtBox, Panel2, button, button, and then back to panel1.
> >> I am working with multiple panels with multiple controls
> >> on each of them, so there is more then 2 panels on my
> >> form, I just need to use those 2.
> >>    I know this maybe a simple question, but it is giving
> >> me alot of grieve, so if anyone out there could please
> >> help.  OR if anyone knew where I may find information on
> >> this subject.  It seems that each panel has its own tab
> >> order level and does not see the other panels.

> >> Thank You
> >> Cynthia

> >.



Tue, 30 Nov 2004 07:53:12 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Combining tab order with tab order of a child form

2. Tab stop ranges not unique in tab panels!

3. tab control - order of tabs

4. BUG?: Tab Order on a Tab Control in VB

5. Tab order when using Tab control

6. Form in Tab Panel

7. How does one invoke a tab in the Control Panel

8. Check box on a panel on a tabbed dialog

9. Check box on a panel on a tabbed dialog

10. Control Panel/System/Device Manager tab Disable/Enable

11. Adding a user control to a SSTab tab panel at runtime

12. Check box on a panel on a tabbed dialog

 

 
Powered by phpBB® Forum Software