ArcObjects Library Reference (Framework)  

IMessageDialog.DoModal Method

Shows the dialog with a message.

[Visual Basic .NET]
Public Function DoModal ( _
    ByVal Title As String, _
    ByVal Message As String, _
    ByVal OKButtonMessage As String, _
    ByVal CANCELButtonMessage As String, _
    ByVal hWnd As Integer _
) As Boolean
[C#]
public bool DoModal (
    string Title,
    string Message,
    string OKButtonMessage,
    string CANCELButtonMessage,
    int hWnd
);

Product Availability

Available with ArcGIS Desktop.

Description

 

Title is a string that specifies the title of the dialog.

Message is a string used for the message displayed in the dialog.

OKButtonMessage specifies the caption for the OK button on the dialog.

CANCELButtonMessage specifies the caption for the Cancel button on the dialog.

hWnd specifies the window handle of the parent window. In most cases this will be the hWnd of the application.

 

Remarks

If the dialog was cancelled, the DoModal method returns False.

See Also

IMessageDialog Interface

.NET Related Topics

How to pass the ArcGIS for Desktop application from a command or tool