Shortcut keys to access controls/fields 
Author Message
 Shortcut keys to access controls/fields

In Microsoft Acess You can easy link an label and an textfield. So if
the user presses Alt+<Letter>, then a certain field will get focus.

How is that done in VB ?

Thank You very much for Your answer

Anders

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Fri, 05 Apr 2002 03:00:00 GMT  
 Shortcut keys to access controls/fields
Use the ampersand in the label's Caption property, for example
Label1.Caption = "&My Label". This will cause the label caption to be
displayed with an underscore below the letter "M" (in this particular case).
Also, the Label's UseMnemonic property needs to be set to True (this is the
default value, so you shouldn't need to expressly set it to True). In this
particular case, when the user presses Alt M then focus will be shifted to
whatever Control immediately follows the Label Control in the Tab order. So,
for example, if the Label's TabIndex property is set to 3 and Text Box1's
TabIndex property is set to 4 then pressing Alt M will shift focus to
TextBox1.

Mike

Quote:

> In Microsoft Acess You can easy link an label and an textfield. So if
> the user presses Alt+<Letter>, then a certain field will get focus.

> How is that done in VB ?

> Thank You very much for Your answer

> Anders

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Fri, 05 Apr 2002 03:00:00 GMT  
 Shortcut keys to access controls/fields
in vb too. online help: "tabindex".


Quote:
> In Microsoft Acess You can easy link an label and an textfield. So if
> the user presses Alt+<Letter>, then a certain field will get focus.
> Sent via Deja.com http://www.deja.com/
> Before you buy.



Mon, 08 Apr 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. WebBrowser control shortcut keys & function keys

2. WebBrowser control shortcut keys & function keys

3. ADO how to determine if a access database field is a primary key field

4. Having trouble accessing single field key with two concatenated fields

5. Accessing toolbar throgh shortcut keys

6. shortcut keys don't work while my active control is the datagrid

7. Problems with Shortcut Keys in ActiveX Control

8. Using Shortcut Keys in Toolbar Control

9. Problems with Shortcut Keys in ActiveX Control

10. Reset primary key counter fields in Access DB

11. Key field error when appending excel file to access 97 database

 

 
Powered by phpBB® Forum Software