SetImage Method

ClipboardProxy.SetImage Method

Note: This method is new in the .NET Framework version 2.0.

Writes an image to the Clipboard.

Namespace: Microsoft.VisualBasic.MyServices
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

public void SetImage (
	Image image
)
public void SetImage (
	Image image
)
public function SetImage (
	image : Image
)

Parameters

image

Image. Image to be written. Required.

For more detailed information, see the Visual Basic topic My.Computer.Clipboard.SetImage Method.

Security noteSecurity Note

Because the Clipboard can be accessed by other users, do not use it to store sensitive information, such as passwords or confidential data.

This example writes the image coolPicture to the Clipboard.

My.Computer.Clipboard.SetImage(coolPicture)

This example depends on the existence of the image coolPicture.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2016 Microsoft