Skip to main content

VB.NET Extensions

WATCH & LEARN0:25 · Animated tutorial
4 scenesPlay, pause, or scrub at your own pace

VB.NET developers may be used to the Microsoft.VisualBasic namespace for VB specific extensions. Wisej.NET provides the Wisej.Web.VisualBasic namespace with the implementation of the Interaction extensions:

MethodDescriptionMicrosoft
MsgBox(Prompt, Buttons, Title, CloseCallback)Displays a message in a dialog box, waits for the user to click a button, and then returns one of MsgBoxResult indicating which button the user clicked.MsgBox
MsgBoxAsync(Prompt, Buttons, Title)Asynchronously displays a message in a dialog box, waits for the user to click a button, and then returns one of MsgBoxResult indicating which button the user clicked.
InputBox(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.InputBox
InputBoxAsync(Prompt, Title, DefaultResponse, XPos, YPos)Asynchronously 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.
Beep(AudioBase64)Plays a sound on the browser.Beep
info

You can still use Microsoft.VisualBasic methods that do not display a UI in Wisej.