HtmlWindow::Alert Method (String^)

 

Displays a message box.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
void Alert(
	String^ message
)

Parameters

message
Type: System::String^

The String to display in the message box.

The MessageBox class offers a more powerful version of the Alert method.

Although Alert accepts Unicode text as input, the Internet Explorer script prompt will not display non-Latin language text appropriately on Windows 95, Windows 98, Windows ME or Windows NT due to operating system limitations. For more information, see INFO: Internet Explorer Script Prompts and MBCS/Unicode.

.NET Framework
Available since 2.0
Return to top
Show: