This document is archived and information here might be outdated.  Recommended version.


IMissingCommand.SetErrorMessage Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

IMissingCommand.SetErrorMessage Method

Sets the message that is displayed when the command is clicked.

[Visual Basic .NET]
Public Sub SetErrorMessage ( _
    ByVal clickMessage As String, _
    ByVal tooltipMessage As String _
)
[C#]
public void SetErrorMessage (
    string clickMessage,
    string tooltipMessage
);
[C++]
HRESULT SetErrorMessage(
  BSTR clickMessage,
  BSTR tooltipMessage
);
[C++]

Parameters clickMessage [in]
clickMessage is a parameter of type BSTR tooltipMessage [in]
tooltipMessage is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine.

Description

Use SetErrorMessage to override the default click and tooltip messages that are displayed when a ToolbarControl item has a missing command, and the user clicks or moves the mouse over the item when IToolbarControl::Tooltips is true. By default the messages display the guid (the *.dll file containing the command has been unregistered) and progID (the *.dll file containing the command has been deleted) of the MissingCommand.

Remarks

A command is created automatically when an item is added to the ToolbarControl through the property pages. If the *.dll file containing the command is missing or is unregistered the command will be a missing command.

See Also

IMissingCommand Interface