My.Computer Object Members

The My.Computer Object provides properties for manipulating computer components such as audio, the clock, the keyboard, the file system, and so on.

Properties

Property

Description

Audio

Returns the My.Computer.Audio Object, which provides access to the audio system of the computer and provides methods for playing .wav files.

This object is available only for non-server applications.

Clipboard

Returns the My.Computer.Clipboard Object, which provides methods for manipulating the Clipboard.

This object is available only for non-server applications.

Clock

Returns the My.Computer.Clock Object, which provides properties for accessing the current local time and Universal Coordinated Time (equivalent to Greenwich Mean Time) from the system clock.

FileSystem

Returns the My.Computer.FileSystem Object, which provides properties and methods for working with drives, files, and directories.

Info

Returns the My.Computer.Info Object, which provides properties for getting information about the computer's memory, loaded assemblies, name, and operating system.

Keyboard

Returns the My.Computer.Keyboard Object, which provides properties for accessing the current state of the keyboard, such as what keys are pressed, and provides a method to send keystrokes to the active window.

This object is available only for non-server applications.

Mouse

Returns the My.Computer.Mouse Object, which provides properties for getting information about the format and configuration of the mouse installed on the local computer.

This object is available only for non-server applications.

Name

Gets the computer name.

Network

Returns the My.Computer.Network Object, which can be used to access network types and events.

Ports

Returns the My.Computer.Ports Object, which provides a property and a method for accessing the computer's serial ports.

This object is available only for non-server applications.

Registry

Returns the My.Computer.Registry Object, which can be used to read from and write to the registry.

Screen

Gets the Screen object that represents the computer's primary display screen.

This property is available only for non-server applications.

See Also

Reference

My.Computer Object