Groups | Blog | Home
all groups > vb.net controls > june 2005 >

vb.net controls : About the tab order in Tab Control


Ellis Yu
6/1/2005 12:00:00 AM
Dear All,

How can I set the next control to be the first control in the next
tab page? I found that even I had set tab order in the controls of all tab
pages. It will not jump to next tab page after pressing "tab" key in the
last control of current tab page. It's quite clumsy to click next tab page
by the mouse every time after finish filling-in all the information of the
page. Anyone know how to solve it? Thanks

Best Rgs
Ellis

Mick Doherty
6/1/2005 12:38:58 PM
TabControls use Ctrl+Tab and Ctrl+Shift+Tab to navigate tabs.
When a tabpage is not selected it is not visible. Hidden and Disabled
controls are not used in the TabOrder.

If you want this non standard behaviour, then you'll need to monitor the
forms ProcessTabKey() method and change the SelectedTab when appropriate.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


[quoted text, click to view]

AddThis Social Bookmark Button