Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Copy image to clipboard


'use picture property of form, picturebox, or image control
ClipBoard.Clear
ClipBoard.Setdata picture1.picture

'here's a second approach, using a picture from a .BMP file
'use picture with these extensions  BMP, ICO, CUR, RLE, WMF, EMF, GIF, JPG
ClipBoard.Clear
ClipBoard.Setdata LoadPicture( "filename.bmp" )