Solved

Windows App - Tab Feature / Alignment is not working

Posted on 2010-09-10
18
383 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now