Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Order troubles

Status
Not open for further replies.

rjoubert

Programmer
Oct 2, 2003
1,843
US
I'm working on a windows application in VB.NET 2005. I have a form with a tab control with several tabs. On one of the tabs I have a panel control that has two radio buttons in it. I've setup the panel and the radio buttons to be tab stops, but when I navigate to this particular tab, it gives the focus to the first button at the bottom of the tab instead of the radio buttons. I have verified that the tab indexes are correct and that the radio buttons' tab stop properties are set to True. Am I just spinning my wheels here? Is there anyway to get the tab order to work properly?

Thanks in advance for any assistance...
 
I should also add that on another page of the tab control, I have a textbox control, which is naturally setup as a tab stop, along with the buttons at the bottom of the page. The tab order all works fine on this particular page of the tab control. Perhaps VS doesn't view the radio buttons nested within the panel to be valid tab stops...even though it provides you with the tab stop and tab index properties.
 
I also tried using a GroupBox control in place of the panel. That didn't work either...I got the same results.
 
It might have something to do with the fact that radiobuttons are on the panel (or groupbox) and not directly on the tabpage. If you look at the taborder in design view you will probably see something like button = 0, panel = 1, radiobutton1 = 1.1, radiobutton2 = 1.2 etc.

I don't currently have VS running (so I can't test this), but maybe you could force the taborder (in design view - ie not using the propertygrid, (I can't remember which menu option this is on)) such that radiobutton1 = 0, radiobutton2 = 1 etc.


Hope this helps.

[vampire][bat]
 
Thanks for the tip. I tried that, but each time you click on the control, it merely increments the last decimal place of the tab order. It won't allow me to set it to a whole number.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top