Solved

Windows App - Tab Feature / Alignment is not working

Posted on 2010-09-10
18
384 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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