Export (0) Print
Expand All
A
Expand Minimize

Visual Basic Reference

Visual Studio 6.0

AccessKeys Property

See Also    Example    Applies To

Returns or sets a string that contains the keys that will act as the access keys (or hot keys) for the control.

Syntax

object.AccessKeys [= AccessKeyString]

The AccessKeys property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
AccessKeyString A string containing the keys that will act as the access keys.

Remarks

The AccessKeys property is a string that contains all the access keys for the control. As an example, to set the letters S and Y as the access keys, the AccessKeys property would be set to "sy".

When a user presses one of the access keys in conjunction with the ALT key, the control will get the focus (depending on the setting of the ForwardFocus property).

Access keys for constituent controls are implicitly included as AccessKeys, although they will not appear in the AccessKeys property.

Show:
© 2014 Microsoft