473,386 Members | 1,702 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,386 software developers and data experts.

short cut keys

slapshock
hi everyone!!!!!!

is anyone up there can help me with my problem??

i want to have a short cut keys in my system....
my problem is i dont know how to do it.............
for example,i want to go to to the textbox NAME...and i want to set alt+ N as a shortcut key....
the problem is i dont know the codes on how to combine the two ascii code...
i dont know to combine ALT and N in order to have the short cut for the textbox....
pls help me with my problem.....
thanks in advance
Dec 3 '06 #1
5 1818
Killer42
8,435 Expert 8TB
What version of VB are you using?
Dec 3 '06 #2
What version of VB are you using?
i am using VB 6.0

thanks in advance!
Dec 5 '06 #3
i am using VB 6.0

thanks in advance!
Hi,
You can do this way.
Create a TextBox and a Label.
Label (Set visible to false) and set tabindex for label 1 and then textbox should be 2 (the immediate next tabindex number of Label)

Name the Label Caption ... for example (N), add "&" for the caption... press Alt+N, automatically the focus will jump to the text box.

Hope this satisfies your question.
All the best
Padhu
Dec 5 '06 #4
Killer42
8,435 Expert 8TB
Create a TextBox and a Label. ...
Good idea.

If I can just explain a bit, in case you didn't get it, padhuwork means to set the caption of the label to &N. The "&" tells VB to show the subsequent letter underlined (assuming it's visible), and use it as the shortcut key to jump to that control. Since a label can't get the focus, it will jump to the next control in the tab order. If you have set the TabIndex values correctly, this should be your textbox.

One thing padhuwork missed - the label must be visible for this to work. If you don't want the user to see it, try hiding it behind the textbox. I've just tried that, and it appears to work.
Dec 5 '06 #5
Thanks For Helping Me...

Thank You Very Much
Dec 18 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Grumpy Aero Guy | last post by:
If I create a MainMenu control on a form, and include short cut keys: (i.e. &File , E&xit ) and run the app, the shortcut functionality Alt-F-X opens the menus and works, but in the default...
12
by: iKiLL | last post by:
Hi I am new to C#, i have come from a VB6 backgrouond. What i am looking for is a list of the Short cut keys for C# and what they do. I am in perticulare looking for the keys to jump to a...
13
by: iKiLL | last post by:
Hi I am new to C#, i have come from a VB6 backgrouond. What i am looking for is a list of the Short cut keys for C# and what they do. I am in perticulare looking for the keys to jump to a...
1
by: luqman | last post by:
How can I use the short cut keys like F2, F3 on web form, so do some process. For example: Pressing F2 should save the Document, pressing F3 should click the Button etc. I am using VS 2005. ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.