Visual Basic Language Reference 
My.Computer Object 

Provides properties for manipulating computer components such as audio, the clock, the keyboard, the file system, and so on.

Remarks

The properties exposed by the My.Computer object return information about the computer on which the application is deployed, as determined at run time. Typically, this data differs from what was available on the development computer.

Some members, such as the My.Computer.Audio object, are available only for non-server applications.

Tasks

The following table lists examples of tasks involving the My.Computer object.

Example

This example uses the My.Computer.Name property to display the name of the computer on which the code runs.

Visual Basic
MsgBox("Computer name: " & My.Computer.Name)
Requirements

Namespace: Microsoft.VisualBasic.Devices

Class: Computer (the base class ServerComputer provides the members that are available in all projects)

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

See Also

Reference

My.Computer Object Members
My.Computer.Audio Object
My.Computer.Clipboard Object
My.Computer.Clock Object
My.Computer.FileSystem Object
My.Computer.Info Object
My.Computer.Keyboard Object
My.Computer.Mouse Object
My.Computer.Network Object
My.Computer.Ports Object
My.Computer.Registry Object
Microsoft.VisualBasic.Devices.Computer
Microsoft.VisualBasic.Devices.ServerComputer

Tags :


Page view tracker