ContextMenu Constructor ()

 

Initializes a new instance of the ContextMenu class with no menu items specified.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
ContextMenu()

Once you have used this version of the constructor, you can add menu items to the ContextMenu by using the Add method of the Menu::MenuItemCollection class. You can access the Menu::MenuItemCollection through the MenuItems property.

.NET Framework
Available since 1.1
Return to top
Show: