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


IListDialog.DoModal Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Framework)  

IListDialog.DoModal Method

Displays the list dialog and lets the user select a choice. Returns false if the user hits the cancel button.

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

Product Availability

Available with ArcGIS Desktop.

Description

 

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

initialChoice specifies the index of the item in the list that is initially selected when the dialog is shown. The items are numbered starting at 0 in the order that they were added to the list.

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

 

Remarks

The DoModal method returns False if the dialog was cancelled.

See Also

IListDialog Interface