Partager via


_SelectNamesDialog.SetDefaultDisplayMode Method

Sets the default display mode for the Select Names dialog box, specifying its caption and button labels.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Sub SetDefaultDisplayMode ( _
    defaultMode As OlDefaultSelectNamesDisplayMode _
)
'Usage
Dim instance As _SelectNamesDialog
Dim defaultMode As OlDefaultSelectNamesDisplayMode

instance.SetDefaultDisplayMode(defaultMode)
[DispIdAttribute()]
void SetDefaultDisplayMode(
    OlDefaultSelectNamesDisplayMode defaultMode
)

Parameters

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.

See Also

Reference

_SelectNamesDialog Interface

_SelectNamesDialog Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Use the Select Names Dialog Box to Obtain and Assign Recipients to an Appointment