?
Solved

Windows App - Tab Feature / Alignment is not working

Posted on 2010-09-10
18
Medium Priority
?
388 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 1800 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 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

801 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