PC Review


Reply
Thread Tools Rate Thread

Access Keys for Tab Control in VB.NET

 
 
Pooja
Guest
Posts: n/a
 
      18th Aug 2004
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.
 
Reply With Quote
 
 
 
 
Jeff Johnson [MVP: VB]
Guest
Posts: n/a
 
      18th Aug 2004

"Pooja" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> 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.


 
Reply With Quote
 
Pooja N
Guest
Posts: n/a
 
      19th Aug 2004


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!
 
Reply With Quote
 
Jeff Johnson [MVP: VB]
Guest
Posts: n/a
 
      19th Aug 2004

"Pooja N" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keys.Control and Keys.ControlKey Jeremy Microsoft Dot NET Framework Forms 0 9th Apr 2008 03:47 PM
Primary Keys and Foreign Keys - Kick me out of the Access club Dazed And Confused Microsoft Access Getting Started 6 3rd Sep 2007 04:43 PM
'case Keys.Control | Keys.C:' ---> Doesn't work on 2.0???! Udi Microsoft C# .NET 1 3rd Aug 2006 02:42 PM
Access Keys for Tab Control in VB.NET Pooja Microsoft VB .NET 0 18th Aug 2004 12:41 PM
Simulating Access shortcut keys, and trapping F-keys press Amir Microsoft Access Forms 2 14th Aug 2004 05:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 PM.