By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,168 Members | 2,548 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,168 IT Pros & Developers. It's quick & easy.

Access Keys for Tab Control in VB.NET

P: n/a
Hi guys,

I have been struggling with this problem for quite a sometime now.
Before a state down my problem wanna give an exmaple:

1. Open a MsWord document.
2. Open the Page Setup dialog box.
3. Navigate using the tab key in the entire dialog box. Use Ctrl+Tab
to navigate between the tab page.

We are successful in doing so. The dialog has 100% keyboard support.

Now the problem. Create the same dialog box in VB.NET. With tab page
control. Provide access keys to the controls. Run the project.
Navigate using the tab key. It works. But use CTRL+TAB keys to
navigate between the tab pages ..u cant!!!!

Please gimme solutions to provide keyboard support for tab controls.
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Pooja" <po**********@n-syst.com> wrote in message
news:54**************************@posting.google.c om...
Now the problem. Create the same dialog box in VB.NET. With tab page
control. Provide access keys to the controls. Run the project.
Navigate using the tab key. It works. But use CTRL+TAB keys to
navigate between the tab pages ..u cant!!!!
Welcome to the life of a developer! Windows does a lot of things for you,
but this isn't one of them; you'll have to supply the functionality
yourself.
Please gimme solutions to provide keyboard support for tab controls.


Set the KeyPreview property of the form to True and then handle the
Form_KeyDown event to see if the user is pressing Ctrl+Tab. Then switch to
the next tab.
Nov 21 '05 #2

P: n/a


Thanks Jeff. Need one more gavor, as i have just migrated from VB6 to
VB.NET, i m not familiar with changes. I m not able to find the
Form_KeyDown event for the form. It was easire in VB 6.:( It would be
great if you could provide me with the code. Thanks in advance.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #3

P: n/a

"Pooja N" <po**********@n-syst.com> wrote in message
news:eG**************@TK2MSFTNGP09.phx.gbl...
Thanks Jeff. Need one more gavor, as i have just migrated from VB6 to
VB.NET, i m not familiar with changes. I m not able to find the
Form_KeyDown event for the form. It was easire in VB 6.:( It would be
great if you could provide me with the code. Thanks in advance.


Assuming you're using Visual Studio, drop down the combo box on the left
side of the code window. You'll see your form's name and below it you should
see (<form name> Events). Click that and then find the event in the
right-side combo box.
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.