Share via


MessageWindow.Text Property

Gets or sets the text for a MessageWindow.

Namespace:  Microsoft.WindowsCE.Forms
Assembly:  Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)

Syntax

'Declaration
Public Property Text As String
'Usage
Dim instance As MessageWindow 
Dim value As String 

value = instance.Text

instance.Text = value
public string Text { get; set; }
public:
property String^ Text {
    String^ get ();
    void set (String^ value);
}
public function get Text () : String 
public function set Text (value : String)

Property Value

Type: System.String
The title bar text of a MessageWindow.

Exceptions

Exception Condition
ObjectDisposedException

The MessageWindow has been disposed.

Remarks

This property uses the native Windows CE GetWindowText and SetNativeText functions to set and get the text. Setting this property to null results in an empty string.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, 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

Reference

MessageWindow Class

MessageWindow Members

Microsoft.WindowsCE.Forms Namespace