O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interaction

Element

Description

AppActivate statement

Gives the focus to a window based on its title or task ID

AppActivateHelper statement

Gives the focus to a window based on its window handle

Beep statement

Sounds a note using the computer speaker

Choose function

Returns a value from a list based on its index

Command function

Returns the argument portion of the command line

Environ function

Retrieves the value of an environment variable

IIf function

Returns one of two values based on the evaluation of a Boolean expression

InputBox function

Returns user input from a simple dialog box

MsgBox function

Displays a message box with buttons, icon, and a message, and returns the button selected by the user

Shell function

Launches an external application

Switch function

Returns the first value or expression in a list that is True

Send, SendWait methods

Send keystrokes to the active window

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required