Edit

Share via


OlkTimeZoneControl Interface

Definition

A control that supports a selection from a drop-down list of time zones.

public interface class OlkTimeZoneControl : Microsoft::Office::Interop::Outlook::_OlkTimeZoneControl, Microsoft::Office::Interop::Outlook::OlkTimeZoneControlEvents_Event
[System.Runtime.InteropServices.Guid("00067367-0000-0000-C000-000000000046")]
public interface OlkTimeZoneControl : Microsoft.Office.Interop.Outlook._OlkTimeZoneControl, Microsoft.Office.Interop.Outlook.OlkTimeZoneControlEvents_Event
Public Interface OlkTimeZoneControl
Implements _OlkTimeZoneControl, OlkTimeZoneControlEvents_Event
Derived
Attributes
Implements

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _OlkTimeZoneControl. For information about the event members of the COM object, see OlkTimeZoneControlEvents_Event.

Before you use this control for the first time in the forms designer, add the Microsoft Outlook Time Zone 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 a time zone control. The time zone data can be obtained from the Windows registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones.

If an appointment item was originally created with a time zone value that no longer exists, the appointment time will be converted to the current local time zone.

Properties

AppointmentTimeField

Returns or sets an OlAppointmentTimeField constant that specifies the time field on the appointment that the control binds against. Read/write.

(Inherited from _OlkTimeZoneControl)
BorderStyle

Returns or sets an OlBorderStyle constant that defines the style of the border around the control. Read/write.

(Inherited from _OlkTimeZoneControl)
Enabled

Returns or sets a Boolean (bool in C#) that indicates if the control is allowed to function. Read/write.

(Inherited from _OlkTimeZoneControl)
Locked

Returns or sets a Boolean (bool in C#) that specifies whether or not the control is locked from being changed. Read/write.

(Inherited from _OlkTimeZoneControl)
MouseIcon

Returns or sets a StdPicture that represents the custom picture to the mouse cursor for this control. Read/write.

(Inherited from _OlkTimeZoneControl)
MousePointer

Returns or sets an OlMousePointer constant that specifies the type of pointer displayed when the user positions the mouse over the control. Read/write.

(Inherited from _OlkTimeZoneControl)
SelectedTimeZoneIndex

Returns or sets an Integer (int in C#) that represents index into the TimeZones collection that determines the selected time zone. Read/write.

(Inherited from _OlkTimeZoneControl)
Value

Returns or sets an Object that represents the content of the control. Read/write.

(Inherited from _OlkTimeZoneControl)

Methods

DropDown()

Expands the drop-down portion of the time zone control.

(Inherited from _OlkTimeZoneControl)

Events

AfterUpdate

Occurs after the data in the control has been changed through the user interface.

(Inherited from OlkTimeZoneControlEvents_Event)
BeforeUpdate

Occurs when the data in the control is changed through the user interface and is about to be saved to the item.

(Inherited from OlkTimeZoneControlEvents_Event)
Change

Occurs when the Value property changes.

(Inherited from OlkTimeZoneControlEvents_Event)
Click

Occurs when the user clicks inside the control.

(Inherited from OlkTimeZoneControlEvents_Event)
DoubleClick

Occurs when the user double-clicks inside the control.

(Inherited from OlkTimeZoneControlEvents_Event)
DropButtonClick

Occurs when the user clicks the drop button to expand the drop-down list in the time zone control, or when the DropDown() method is called programmatically.

(Inherited from OlkTimeZoneControlEvents_Event)
Enter

Occurs when the control receives focus, immediately after the previous control's Exit event.

(Inherited from OlkTimeZoneControlEvents_Event)
Exit

Occurs just after the focus passes from this control to another control on the same form.

(Inherited from OlkTimeZoneControlEvents_Event)
KeyDown

Occurs when a user presses a key.

(Inherited from OlkTimeZoneControlEvents_Event)
KeyPress

Occurs when the user presses an ANSI key.

(Inherited from OlkTimeZoneControlEvents_Event)
KeyUp

Occurs when the user releases a key.

(Inherited from OlkTimeZoneControlEvents_Event)
MouseDown

Occurs when the user presses a mouse button on the control.

(Inherited from OlkTimeZoneControlEvents_Event)
MouseMove

Occurs after a mouse movement has been registered over the control.

(Inherited from OlkTimeZoneControlEvents_Event)
MouseUp

Occurs after the user releases a mouse button that has been pressed on the control.

(Inherited from OlkTimeZoneControlEvents_Event)

Applies to