OlkDateControl object (Outlook)

A control that supports the drop-down date picker used in inspectors for task and appointment items to select a date.

Remarks

Before you use this control for the first time in the forms designer, add the Microsoft Outlook Date Control to the control toolbox. You can only add this control to a form region in an Outlook form using the forms designer; you cannot add this control to a Visual Basic UserForm object in the Visual Basic Editor.

The following is an example of the date control at runtime. This control supports Microsoft Windows themes.

Date

This control can bind to any built-in or custom DateTime field. However, the control does not support any date format setting for the field, nor does it support the select range behavior that is available in the appointment inspector.

If the Click event is implemented but the DropButtonClick event is not implemented, then clicking the drop button will fire only the Click event.

For more information about Outlook controls, see Controls in a Custom Form. For examples of add-ins in C# and Visual Basic .NET that use Outlook controls, see code sample downloads on MSDN.

Events

Name
AfterUpdate
BeforeUpdate
Change
Click
DoubleClick
DropButtonClick
Enter
Exit
KeyDown
KeyPress
KeyUp
MouseDown
MouseMove
MouseUp

Methods

Name
DropDown

Properties

Name
AutoSize
AutoWordSelect
BackColor
BackStyle
Date
Enabled
EnterFieldBehavior
Font
ForeColor
HideSelection
Locked
MouseIcon
MousePointer
ShowNoneButton
Text
TextAlign
Value

See also

OlkDateControl Object Members Outlook Object Model Reference

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.