Invokes a command on the local form or in the global environment.
[Visual Basic] Function GlobalInvoke( _ ByVal commandID As CommandID _ ) As Boolean [C#] bool GlobalInvoke( CommandID commandID ); [C++] bool GlobalInvoke( CommandID* commandID ) = 0; [JScript] function GlobalInvoke( commandID : CommandID ) : Boolean;
true if the command was found and invoked successfully; otherwise, false.
The local form is first searched for the given command ID. If it is found, it is invoked. Otherwise the the command ID is passed to the global environment command handler, if one is available.
IMenuCommandService Interface | IMenuCommandService Members | System.ComponentModel.Design Namespace