my vb program cant use shortcut key?why?
my vb program use control array.so when i run the program, the shortcut key can't be used,example:ctrl+c,ctrl+v,ctrl+x,,,,,,and so on..
who can help me?
Any suggestions will be greatly appreciated.
# 1 Re: my vb program cant use shortcut key?why?
Depending on the controls you are using, you may have to check the keypresses and do the copy and paste functions yourself.
# 3 Re: my vb program cant use shortcut key?why?
In VB the standard shortcut is ALT+character.
To make a VB control respond to a given character you need to have the contyrol's caption include an ampersand immediately before that character.
For example:
cmdButton(0).Caption = "&Save"
cmdButton(1).Caption = "E&xit"
Now press ALT+S and the Save button will be clicked.
To assign a hotkey to set focus to a control you need the label whose TabIndex immediately precedes that control to have the ampersand in its caption.
HTH,
Duncan
---------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.