SelectNamesDialog.SetDefaultDisplayMode Method (Outlook)
Sets the default display mode for the Select Names dialog box, specifying its caption and button labels.
Version Information
Version Added: Outlook 2007
Syntax
expression .SetDefaultDisplayMode(defaultMode)
expression A variable that represents a SelectNamesDialog object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
defaultMode |
Required |
A constant in the OlDefaultSelectNamesDisplayMode enumeration that determines the default caption and button labels for the Select Names dialog box. |
Remarks
SetDefaultDisplayMode is optional. If you do not call SetDefaultDisplayMode before calling Display, the default display mode will be OlDefaultSelectNamesDisplayMode.olDefaultMail. To set the display mode to a different value, you should call SetDefaultDisplayMode before calling the Display method.
This method allows you to display the Select Names dialog box without using a resource file to localize the values for the caption, the To label, Cc label, and Bcc label. You can override the built-in behavior by setting your own values for Caption, ToLabel, CcLabel, and BccLabel.
You can set additional properties (for example, setting NumberOfRecipientSelectors to olRecipientSelectors.olToCc) after calling SetDefaultDisplayMode. The Select Names dialog box will observe the subsequent setting.