Returns or sets a value that determines whether a check mark is displayed next to a menu item.
object.Checked [= boolean]
The parts of the Checked property syntax are described in the following table.
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
boolean | A Boolean expression that specifies whether a check mark is displayed next to a menu item. |
The settings for boolean are described in the following table.
Setting | Description |
---|---|
True | Places a check mark next to a menu item. |
False | (Default). Does not place a check mark next to a menu item. |
At design time, you can use the Menu Editor to set Checked to True. At run time, you can toggle Checked on and off as part of a Click event procedure attached to a Menu control. You can also set the value of Checked in a startup procedure or in a form's Load event procedure.