Skip to main content
A newer version of this page is available. .

XtraInputBox.Show(String, String, String) Method

Displays a dialog box using the specified title, prompt, and default response.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

public static string Show(
    string prompt,
    string title,
    string defaultResponse
)

Parameters

Name Type Description
prompt String

The text to display in the dialog box.

title String

The text to display in the title bar of the dialog box.

defaultResponse String

The text to display as the editor’s default edit value.

Returns

Type Description
String

A String that represents the dialog box editor’s edit value if the OK button is clicked; otherwise, String.Empty.

Remarks

The code below demonstrates how to display a dialog box specifying the prompt, title, and default response.


XtraInputBox.Show("Enter a new value", "Change Settings", "Default");
See Also