Skip to content

Latest commit

 

History

History
60 lines (48 loc) · 3.27 KB

File metadata and controls

60 lines (48 loc) · 3.27 KB
title Accessing computer resources (Visual Basic)
ms.custom
ms.date 07/20/2015
ms.prod .net
ms.reviewer
ms.suite
ms.technology
devlang-visual-basic
ms.topic article
helpviewer_keywords
computer resources [Visual Basic]
My.Computer object [Visual Basic], tasks
computer resources [Visual Basic], accessing
ms.assetid 75b81c88-f7c0-46e0-95c8-0c006d2120f9
caps.latest.revision 16
author dotnet-bot
ms.author dotnetcontent

Accessing computer resources (Visual Basic)

The My.Computer object is one of the three central objects in My, providing access to information and commonly used functionality. My.Computer provides methods, properties, and events for accessing the computer on which the application is running. Its objects include:

  • xref:Microsoft.VisualBasic.Devices.Audio
  • Clipboard (xref:Microsoft.VisualBasic.MyServices.ClipboardProxy)
  • xref:Microsoft.VisualBasic.Devices.Clock
  • xref:Microsoft.VisualBasic.FileIO.FileSystem
  • xref:Microsoft.VisualBasic.Devices.ServerComputer.Info%2A
  • xref:Microsoft.VisualBasic.Devices.Keyboard
  • xref:Microsoft.VisualBasic.Devices.Mouse
  • xref:Microsoft.VisualBasic.Devices.Network
  • xref:Microsoft.VisualBasic.Devices.Ports
  • Registry (xref:Microsoft.VisualBasic.MyServices.RegistryProxy)

In this section

Playing Sounds
Lists tasks associated with My.Computer.Audio, such as playing a sound in the background.

Storing Data to and Reading from the Clipboard
Lists tasks associated with My.Computer.Clipboard, such as reading data from or writing data to the Clipboard.

Getting Information about the Computer
Lists tasks associated with My.Computer.Info, such as determining a computer's full name or IP addresses.

Accessing the Keyboard
Lists tasks associated with My.Computer.Keyboard, such as determining whether CAPS LOCK is on.

Accessing the Mouse
Lists tasks associated with My.Computer.Mouse, such as determining whether a mouse is present.

Performing Network Operations
Lists tasks associated with My.Computer.Network, such as uploading or downloading files.

Accessing the Computer's Ports
Lists tasks associated with My.Computer.Ports, such as showing available serial ports or sending strings to serial ports.

Reading from and Writing to the Registry
Lists tasks associated with My.Computer.Registry, such as reading data from or writing data to registry keys.