Wisej.Web.VisualBasic.Interaction
Namespace: Wisej.Web.VisualBasic
Assembly: Wisej.Framework (2.2.0.0)
Replaces the visual methods in Microsoft.VisualBasic.Interaction.
In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Sounds a tone through the computer's speaker.
Displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
Returns: String. The contents of the text box.
Asynchronous displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
Returns: Task<String>. The contents of the text box.
Displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
Returns: MsgBoxResult. One of MsgBoxResult.
Asynchronously displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
Returns: Task<MsgBoxResult>. One of MsgBoxResult.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Target
Context object that initiated this call.
AudioBase64
Optional. Custom audio stream. If omitted the default beep wav is played.
Target
Context object that initiated this call.
Prompt
Required String expression displayed as the message in the dialog box.
Title
Optional. String expression displayed in the title bar of the dialog box. If you omit Title , the application name is placed in the title bar.
DefaultResponse
Optional. String expression displayed in the text box as the default response if no other input is provided. If you omit DefaultResponse , the displayed text box is empty.
XPos
Optional. Numeric expression that specifies, in pixels, the distance of the left edge of the dialog box from the left edge of the screen. If you omit XPos , the dialog box is centered horizontally.
YPos
Optional. Numeric expression that specifies, in pixels, the distance of the upper edge of the dialog box from the top of the screen. If you omit YPos , the dialog box is centered vertically.
CloseCallback
Optional. Asynchronous callback.
Target
Context object that initiated this call.
Prompt
Required String expression displayed as the message in the dialog box.
Title
Optional. String expression displayed in the title bar of the dialog box. If you omit Title , the application name is placed in the title bar.
DefaultResponse
Optional. String expression displayed in the text box as the default response if no other input is provided. If you omit DefaultResponse , the displayed text box is empty.
XPos
Optional. Numeric expression that specifies, in pixels, the distance of the left edge of the dialog box from the left edge of the screen. If you omit XPos , the dialog box is centered horizontally.
YPos
Optional. Numeric expression that specifies, in pixels, the distance of the upper edge of the dialog box from the top of the screen. If you omit YPos , the dialog box is centered vertically.
Target
Context object that initiated this call.
Prompt
Required. String expression displayed as the message in the dialog box.
Buttons
Optional. Numeric expression that is the sum of values specifying the number and type of buttons to display, the icon style to use, the identity of the default button, and the modality of the message box. If you omit Buttons , the default value is zero.
Title
Optional. String expression displayed in the title bar of the dialog box. If you omit Title , the application name is placed in the title bar.
CloseCallback
Optional. Asynchronous callback.
Target
Context object that initiated this call.
Prompt
Required. String expression displayed as the message in the dialog box.
Buttons
Optional. Numeric expression that is the sum of values specifying the number and type of buttons to display, the icon style to use, the identity of the default button, and the modality of the message box. If you omit Buttons , the default value is zero.
Title
Optional. String expression displayed in the title bar of the dialog box. If you omit Title , the application name is placed in the title bar.
Name | Description |
---|
Name | Description |
---|
AbortRetryIgnore | Abort, Retry, and Ignore buttons. This member is equivalent to the Visual Basic constant vbAbortRetryIgnore. |
ApplicationModal | Application modal message box. This member is equivalent to the Visual Basic constant vbApplicationModal. |
Critical | Critical message. This member is equivalent to the Visual Basic constant vbCritical. |
DefaultButton1 | First button is default. This member is equivalent to the Visual Basic constant vbDefaultButton1. |
DefaultButton2 | Second button is default. This member is equivalent to the Visual Basic constant vbDefaultButton2. |
DefaultButton3 | Third button is default. This member is equivalent to the Visual Basic constant vbDefaultButton3. |
Exclamation | Warning message. This member is equivalent to the Visual Basic constant vbExclamation. |
Information | Information message. This member is equivalent to the Visual Basic constant vbInformation. |
MsgBoxHelp | Help text. This member is equivalent to the Visual Basic constant vbMsgBoxHelp. |
MsgBoxRight | Right-aligned text. This member is equivalent to the Visual Basic constant vbMsgBoxRight. |
MsgBoxRtlReading | Right-to-left reading text (Hebrew and Arabic systems). This member is equivalent to the Visual Basic constant vbMsgBoxRtlReading. |
MsgBoxSetForeground | Foreground message box window. This member is equivalent to the Visual Basic constant vbMsgBoxSetForeground. |
OkCancel | OK and Cancel buttons. This member is equivalent to the Visual Basic constant vbOKCancel. |
OkOnly | OK button only (default). This member is equivalent to the Visual Basic constant vbOKOnly. |
Question | Warning query. This member is equivalent to the Visual Basic constant vbQuestion. |
RetryCancel | Retry and Cancel buttons. This member is equivalent to the Visual Basic constant vbRetryCancel. |
SystemModal | System modal message box. This member is equivalent to the Visual Basic constant vbSystemModal. |
YesNo | Yes and No buttons. This member is equivalent to the Visual Basic constant vbYesNo. |
YesNoCancel | Yes, No, and Cancel buttons. This member is equivalent to the Visual Basic constant vbYesNoCancel. |
Displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked. |
Asynchronously displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked. |
Name | Description |
---|---|
Name | Description |
---|---|
Abort
Abort button was pressed. This member is equivalent to the Visual Basic constant vbAbort.
Cancel
Cancel button was pressed. This member is equivalent to the Visual Basic constant vbCancel.
Ignore
Ignore button was pressed. This member is equivalent to the Visual Basic constant vbIgnore.
No
No button was pressed. This member is equivalent to the Visual Basic constant vbNo.
None
Nothing is returned from the dialog box.
Ok
OK button was pressed. This member is equivalent to the Visual Basic constant vbOK.
Retry
Retry button was pressed. This member is equivalent to the Visual Basic constant vbRetry.
Yes
Yes button was pressed. This member is equivalent to the Visual Basic constant vbYes.
Displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.