Setting Tab Index between Panels

  • Thread starter Thread starter Ben
  • Start date Start date
B

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
 
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.
 
Back
Top