This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IM > IMessageDialog Interface > IMessageDialog.DoModal Method (ArcObjects .NET 10.4 SDK) |
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 );
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.
If the dialog was cancelled, the DoModal method returns False.