Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Windows App - Tab Feature / Alignment is not working

Posted on 2010-09-10
18
Medium Priority
?
389 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

636 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