Link to home
Start Free TrialLog in
Avatar of chokka
chokkaFlag for United States of America

asked on

Windows App - Tab Feature / Alignment is not working

VS 2005 / VB.Net

Windows App - Tab Feature / Alignment is not working

I am using plent of Panels in this Winform ..

All Tab features are not working ..
Screenshots.JPG
Avatar of wellhole
wellhole

Make sure the TabStop member of the panels and controls are set to True. Otherwise, the tab key will not bring the cursor to them.
How many panels to do you have ....:)..There are also textboxes,labels,combos,radio button e.t.c did you restart the numeric of tab index as you wish?
reverse the tabstop from panels to false....
control's TabIndex is only relevant within its container. Once you enter a container you must visit all controls within that container before moving to the next container.

If you want to follow the tab order as is then you can just call the form's SelectNextControl method. If you want to follow a different order then you'll need to put the TextBoxes in an array of your own. You can then find the index of the current control, get the control at the next index and call its Select method.
In design time, click on menu View->Tab Order. All the tab orders will be displayed (See screen shot below). You can just click on the blue boxes to change the tab orders.
 
 You need to align Panels' tab indexes, too, although you can set its TabStop to false. Their indexes are part of indexes for the controls inside the panel.

Screenshot.PNG
Avatar of chokka

ASKER

Thanks Zhaolai - For a brief explaination ..

let me take some time and update you
Avatar of chokka

ASKER

TabIndex - 0.0
0.1

is considered to be Invalid
No, you do not put tabindex 0.0 or 0.1 in the control's TabIndex property box. You just need 0, 1, 2,.....
0.0, 0.1 are tab indexes when showing using View->Tab Order.
Avatar of chokka

ASKER

For every controls, Under property i can see TabIndex

How should i go for Tab Order View ?
For the controls inside a panel, using View->Tab Order, it shows tab indexes as 0.0, 0.1, 0.2. The first 0 is the tab index of the container panel.

If you click on View->Tab Order, all the tab indexes are shown for the controls. You ca just simply click on each one (in blue boxes) to change it. You don't need to change them in the controls' property list.
ASKER CERTIFIED SOLUTION
Avatar of Zhaolai
Zhaolai
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chokka

ASKER

Ok,I am able to see the TabOrder in Blue Box.

But, i am able to edit the Blue Box
No, you can't type anything into the blue box. Just keep clicking on it until the proper indexes appear.
Avatar of chokka

ASKER

But, i am not able to edit the Blue Box
You mean when you click on the blue box, the index number in the box does not change.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chokka

ASKER

zhaolai - Amazingly it works ..

Still i have some issues .. but its ok ..

99% is working