IWinApplicationClass.ErrorBox

Syntax

ErrorBox(Message: String; [ParentWindow: IWin32Window = Null]);

Parameters

Message. The message to be displayed in the error box.

ParentWindow. The parent window, for which the dialog box opens modally. The Null value is passed by default, the dialog box opens modally for the current window.

Description

The ErrorBox method opens a standard error message dialog box.

Comments

It is used only in the desktop application.

The dialog box contains only the OK button and looks as follows:

Example

Executing the example requires a form and a button named Button1 on the form.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    WinApplication.ErrorBox("Critical error");
End Sub Button1OnClick;

Clicking the button opens the error message dialog box.

See also:

IWinApplicationClass