473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Access Keys for Tab Control in VB.NET

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
3 3083

"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


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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: jameshamilton777 | last post by:
I want to make my website properly accessible. I want to assign keys that navigate to a different page when pressed. I've looked into the accesskey attribute, but under IE that involves pressing...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
10
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
1
by: guoqi zheng | last post by:
Dear sir, I have a textbox inside a repeart control, autopostback set to true for that textbox. When the value of this textbox changes, I need to access current row and update database. ...
2
by: Sagaert Johan | last post by:
Hi I have a usercontrol , the keypress and keyup/down events do not seem to work on the cursor keys . How can i capture the cursor keys when my control has the focus ? Johan
3
by: MLM450 | last post by:
I have a control that handles the KeyDown event but it does not seem to execute when a combination of keys is pressed - like CTRL+Z. If I press CTRL, it executes. If I press Z, it executes. But the...
1
by: Martijn Mulder | last post by:
/* I have problems detecting the Arrow Keys on a User Control. A control derived from System.Windows.Forms.Control neglects 'bare' Arrow Keys but does react on the combination <Altor <Ctrl+ Arrow...
4
by: boopsboops | last post by:
Hi thescripts people, I hope I'm in the right forum for Visual Basic Dotnet (VS 2005). I am trying to make a custom control in which you can nudge a point around using the arrow keys. Actually,...
2
by: Charles Law | last post by:
I'll kick myself when you tell me, but ... I have a user control on a form, and I want the user control to see the arrow keys when I press them. If I press just about any other key the control's...
10
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Thank you for that. It was very...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.