Notification.InitialDuration Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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 Property InitialDuration As Integer
Dim instance As Notification
Dim value As Integer

value = instance.InitialDuration

instance.InitialDuration = value
public int InitialDuration { get; set; }
property int InitialDuration {
    int get ();
    void set (int value);
member InitialDuration : int with get, set

Property Value

Type: System.Int32
The amount of time the balloon is visible, in seconds. The default is 10.


Exception Condition

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
notification1.InitialDuration = 20;

.NET Framework Security


Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also


Notification Class

Notification Members

Microsoft.WindowsCE.Forms Namespace