Notification.Caption Property
Gets or sets a string specifying the title text for the message balloon.
Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in microsoft.windowsce.forms.dll)
Syntax
'Declaration
Public Property Caption As String
'Usage
Dim instance As Notification
Dim value As String
value = instance.Caption
instance.Caption = value
public string Caption { get; set; }
public:
property String^ Caption {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_Caption ()
/** @property */
public void set_Caption (String value)
public function get Caption () : String
public function set Caption (value : String)
Not applicable.
Property Value
A string that specifies the caption text. The default value is an empty string ("").
Remarks
The background color of the caption is dependent on the current theme of the user.
Use the Text property to modify the text in the body of the message balloon.
Example
The following code creates a notification and sets the caption of the message balloon. This code example is part of a larger example provided for the Notification class.
Notification1.Caption = "Notification scenario - data download"
notification1.Caption = "Notification scenario - data download";
Platforms
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.
Version Information
.NET Compact Framework
Supported in: 2.0
See Also
Reference
Notification Class
Notification Members
Microsoft.WindowsCE.Forms Namespace