Home All Groups Group Topic Archive Search About

Setting Tab Index between Panels

Author
6 Dec 2006 4:16 PM
Ben
Hi

We have a number of Panels on our windows form, we have controls inside and
outside of the panels.

I am having problems tabbing between controls, it appers to be when the
controls are within panels: It will tab though the controls outside the
panels and then, tab into the panels.

I have also tried setting the tab index at design time.

Any advice would be much appreciated

Thanks
B

Author
6 Dec 2006 4:32 PM
Lee
Ben:

The Form and the Panels are both containers and each have their own
TabIndex's (and they may overlap).

AFAIK, when tabbing thru a container, first the controls directly on
the container are tabbed thru and then containers within the original
container are tabbed thru; and this process continues thu the
inner-most container.

In your case that means that first the controls on the Form are tabbed
thru and then controls within the Panels.

You will need to set focus programmatically if you need something
different.

--
// Lee Silver
// Information Concepts Inc.

Ben wrote:
Show quoteHide quote
> Hi
>
> We have a number of Panels on our windows form, we have controls inside and
> outside of the panels.
>
> I am having problems tabbing between controls, it appers to be when the
> controls are within panels: It will tab though the controls outside the
> panels and then, tab into the panels.
>
> I have also tried setting the tab index at design time.
>
> Any advice would be much appreciated
>
> Thanks
> B