Checked Property

See Also19R5G9L                 Example2K16ZZF>Low

Applies To



Determines whether a check mark is displayed next to a menu command.


menuitem.Checked[ = boolean ]


The Checked property settings are:

Setting     Description


True         Places a check mark next to a menu command.

False        (Default) Removes a check mark from a menu command.



You can use code to set the Checked property at run timefor example, as part of a Click68UQAKP event procedure attached to a menu control.  You might also set the value of this property in a startup procedure1NHZZC6 or in a form's Load2S1GYBF event procedure.

Data Type

IntegerDOKXHY (Boolean)

See Also


Creating a Menu Bar1DSHCUG

Enabled Property3XD4FN

Visible Property32KNZA4


Programmer's Guide:

Chapter 4, "Menus and Dialogs"

Checked Property Example

The example displays and removes a check mark next to a menu item.  To try this example, create a form with a menu having one command (set both Caption and Name = "MyMenuItem"). Then Press F5 and choose the menu item.

Sub MyMenuItem_Click ()
  ' Turn check mark on menu command on and off.
  MyMenuItem.Checked = Not MyMenuItem.Checked
End Sub