Visual Basic Reference
Returns or sets a string that contains the keys that will act as the access keys (or hot keys) for the control.
object.AccessKeys [= AccessKeyString]
The AccessKeys property syntax has these parts:
|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.|
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.