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


IMessageDialog.DoModal Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IM > IMessageDialog Interface > IMessageDialog.DoModal Method
ArcGIS Developer Help

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