473,394 Members | 1,709 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,394 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 3086

"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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.