This document is archived and information here might be outdated. Recommended version. |
Provides access to members that work with a dialog for displaying a list.
Name | Description | |
---|---|---|
AddString | Adds a string to the list that the dialog will show. These strings will be sorted in alphabetical order. | |
Choice | The index of the string chosen (use after calling DoModal). Strings are numbered starting at 0 in the order that they were added, not the order that they appear in the dialog. | |
DoModal | Displays the list dialog and lets the user select a choice. Returns false if the user hits the cancel button. |
CoClasses and Classes | Description |
---|---|
ListDialog | List Dialog object. |
The list dialog is a dialog used to present a list of options and allows the user to select one of the options.
To get access to the IListDialog interface, create a new ListDialog object.
The following code shows how to get a reference to IListDialog interface.
IListDialog listDlg=new ListDialogClass();
The following code shows how to get a reference to IListDialog interface.
Dim listDlg As IListDialog=New ListDialogClass