Version

GetAccessKey Method

Returns a string containing the access key character for the automation element.
Syntax
'Declaration
 
Protected Overridable Function GetAccessKey() As String
protected virtual string GetAccessKey()

Return Value

A string containing the access key character for the automation element.
Remarks

An access key (sometimes called a keyboard shortcut or mnemonic) is a character in the text of a menu, menu item, or label of a control such as a button, that activates the associated menu function. For example, to open the File menu, for which the access key is typically F, the user would press ALT+F.

The AccessKey property has a variant type of VT_BSTR; the default value is an empty string.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also