# SupportsMnemonics
{: .no_toc }

Returns whether the container will dispatch keyboard mnemonics to embedded controls, as a **Boolean**. Read-only.

Syntax: *object*.**SupportsMnemonics**

*object*
: *required* An object expression that evaluates to an **AmbientProperties** object.

A mnemonic is the underlined letter in a caption such as `&File` --- it gives the user a way to invoke the control with **Alt+F**. When **SupportsMnemonics** is **True**, the container forwards mnemonic keystrokes to the control; the control should then underline its mnemonic letter when displaying the caption. When the property is **False**, the host will not forward mnemonics, and the control should display its caption without underlining.

### Example

This example responds to a **SupportsMnemonics** change and triggers a repaint to update the caption underlining.

```tb check_build
Private Sub UserControl_AmbientChanged(PropertyName As String)
    Select Case PropertyName
        Case "SupportsMnemonics"
            UserControl.Refresh    ' repaint to underline or suppress the mnemonic character
    End Select
End Sub
```

### See Also

- [DisplayAsDefault](/tB/Packages/VBRUN/AmbientProperties/DisplayAsDefault.md) property
- [MessageReflect](/tB/Packages/VBRUN/AmbientProperties/MessageReflect.md) property
