473,748 Members | 2,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

short cut keys

slapshock
57 New Member
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 1840
Killer42
8,435 Recognized Expert Expert
What version of VB are you using?
Dec 3 '06 #2
slapshock
57 New Member
What version of VB are you using?
i am using VB 6.0

thanks in advance!
Dec 5 '06 #3
padhuwork
30 New Member
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 Recognized Expert Expert
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
slapshock
57 New Member
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
1228
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 state of the running form, the underscores (in my example under the letter "F" in "File" and "x" in "Exit") are NOT visible by default. After hitting Alt-F, you THEN see the appropriate underscores....but it
12
1926
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 Decleration and then back to where you came from in the code, like in VB6. (SHIFT+F9 and CTRL+SHIFT+F9)
13
1840
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 Decleration and then back to where you came from in the code, like in VB6. (SHIFT+F9 and CTRL+SHIFT+F9)
1
1672
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. Best Regards,
0
8984
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9312
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9238
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.