See Also Example
Applies To
Menu.
Description
Determines whether a check mark is displayed next to a menu command.
Usage
menuitem.Checked[ = boolean ]
Setting
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.
Remarks
You can use code to set the Checked property at run timefor example, as part of a Click You might also set the value of this property in a startup procedure or in a form's Load event procedure.
Data Type
Integer (Boolean)
Help:
Creating a Menu Bar
Enabled Property
Visible Property
Programmer's Guide:
Chapter 4, "Menus and Dialogs"
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