Solved

Windows App - Tab Feature / Alignment is not working

Posted on 2010-09-10
18
385 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:chokka
  • 6
  • 6
  • 5
  • +1
18 Comments
 
LVL 9

Expert Comment

by:wellhole
ID: 33648165
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.
0
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33648169
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?
0
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33648186
reverse the tabstop from panels to false....
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33648433
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.
0
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33648444
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33648779
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
0
 

Author Comment

by:chokka
ID: 33649329
Thanks Zhaolai - For a brief explaination ..

let me take some time and update you
0
 

Author Comment

by:chokka
ID: 33649593
TabIndex - 0.0
0.1

is considered to be Invalid
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33649632
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.
0
 

Author Comment

by:chokka
ID: 33649676
For every controls, Under property i can see TabIndex

How should i go for Tab Order View ?
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33649704
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.
0
 
LVL 17

Accepted Solution

by:
Zhaolai earned 450 total points
ID: 33649734
See this:

Screenshot.PNG
0
 

Author Comment

by:chokka
ID: 33649746
Ok,I am able to see the TabOrder in Blue Box.

But, i am able to edit the Blue Box
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33649804
No, you can't type anything into the blue box. Just keep clicking on it until the proper indexes appear.
0
 

Author Comment

by:chokka
ID: 33649810
But, i am not able to edit the Blue Box
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33649845
You mean when you click on the blue box, the index number in the box does not change.
0
 
LVL 18

Assisted Solution

by:John (Yiannis) Toutountzoglou
John (Yiannis) Toutountzoglou earned 50 total points
ID: 33649918
You may read this....It explains Both @Zhaolai's Solution and mines
http://www.devasp.net/net/articles/display/831.html
0
 

Author Comment

by:chokka
ID: 33649968
zhaolai - Amazingly it works ..

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

99% is working
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question