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);
}
/** @property */
public String get_Text ()

/** @property */
public void set_Text (String value)
public function get Text () : String

public function set Text (value : String)
Not applicable.

Property Value

The title bar text of a MessageWindow.

Exceptions

Exception type 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 a null reference (Nothing in Visual Basic)results in an empty string.

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

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

MessageWindow Class
MessageWindow Members
Microsoft.WindowsCE.Forms Namespace