All pages
Powered by GitBook
1 of 1

Loading...

Interaction

Wisej.Web.VisualBasic.Interaction

Namespace: Wisej.Web.VisualBasic

Assembly: Wisej.Framework (2.2.0.0)

Replaces the visual methods in Microsoft.VisualBasic.Interaction.

public class Interaction
Public Class 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 or .

Methods

Beep(Target, AudioBase64)

Sounds a tone through the computer's speaker.

Parameter
Type
Description

InputBox(Target, Prompt, Title, DefaultResponse, XPos, YPos, CloseCallback)

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.

Parameter
Type
Description

Returns: . The contents of the text box.

InputBoxAsync(Target, Prompt, Title, DefaultResponse, XPos, YPos)

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.

Parameter
Type
Description

Returns: . The contents of the text box.

MsgBox(Target, Prompt, Buttons, Title, CloseCallback)

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.

Parameter
Type
Description

Returns: . One of .

MsgBoxAsync(Target, Prompt, Buttons, Title)

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.

Parameter
Type
Description

Returns: . One of .

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.

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.

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.

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.

Target

Object

Context object that initiated this call.

AudioBase64

String

Optional. Custom audio stream. If omitted the default beep wav is played.

Target

Object

Context object that initiated this call.

Prompt

String

Required String expression displayed as the message in the dialog box.

Title

String

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.

Target

Object

Context object that initiated this call.

Prompt

String

Required String expression displayed as the message in the dialog box.

Title

String

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.

Target

Object

Context object that initiated this call.

Prompt

Object

Required. String expression displayed as the message in the dialog box.

Buttons

MsgBoxStyle

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.

Target

Object

Context object that initiated this call.

Prompt

Object

Required. String expression displayed as the message in the dialog box.

Buttons

MsgBoxStyle

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.

Extension Methods (Visual Basic)
Extension Methods (C# Programming Guide)
String
Task<String>
MsgBoxResult
MsgBoxResult
Task<MsgBoxResult>
MsgBoxResult

DefaultResponse

DefaultResponse

Title

Title

String
Int32
Int32
Action<String>
String
Int32
Int32
Object
Action<MsgBoxResult>
Object