Notification.InitialDuration Property

Gets or sets the number of seconds the message balloon remains visible after initially shown.

Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in microsoft.windowsce.forms.dll)

public int InitialDuration { get; set; }
/** @property */
public int get_InitialDuration ()

/** @property */
public void set_InitialDuration (int value)

public function get InitialDuration () : int

public function set InitialDuration (value : int)

Not applicable.

Property Value

The amount of time the balloon is visible, in seconds. The default is 10.

Exception typeCondition


Occurs if this property is set to a negative value.

If you set this property to zero, the message balloon does not initially display but the notification icon appears in the title bar.

The following code example demonstrates creating and displaying a notification with a twenty second duration. This code example is part of a larger example provided for the Notification class.

notification1.InitialDuration = 20;

Windows Mobile for Pocket PC

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Compact Framework

Supported in: 2.0

Community Additions