Description
This property provides a scripting interface to the main menu created with MenuStrip Class Library.
Supported component versions: .NET Framework v. 2.0 - 4.8.
Declaration
TestObj.StripMainMenu
Read-Only Property | A Menu object |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section |
Applies To
The property is applied to the following object:
View Mode
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Property Value
A Menu
object that corresponds to Microsoft MenuStrip
component.
Remarks
After you obtain the menu, you can select items from this menu using the returned object. See the Menu
object description for more information on available menu actions.
To access context (popup) menus created with the MenuStrip Class Library, use the StripPopupMenu
property.
The StripMainMenu
property is only available if the Microsoft Control Support plugin is installed and the WindowObj has the main menu created with the MenuStrip library. Otherwise, this property is absent in the window’s property list.
See Also
MainMenu Property
PopupMenu Property (Window Objects)
StripPopupMenu Property
SystemMenu Property
Simulating Menu Actions