0

MY application has a context menu that appears when the user right-clicks a form. The context menu is generated on each click since the items depend on various application variables.

Each context menu contains a number of items and several DropDown sub-menus.

As the context menu is created, I can set items on the primary menu as checked as follows:

MenuItemX.Checked = True

However, I cannot find a way to make items in the Dropdown menu checked. I can create these items OK, but the line of code above does not allow me to set them as checked.

Is it possible to have items within a Dropdown sub-menu checked, and to set this property at run-time?

Can anyone provide an example of how to do this?

4

0 回答 0