Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual Basic
Objects
My.Computer Object

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
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.

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.

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

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)

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)

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker