Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
500MB 27GB Web Hosting - $9.95/Month
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleCopy and paste images to the Clipboard
Keywordsclipboard, copy, paste, image
CategoriesGraphics
 
Use the Clipboard object's Clear and SetData methods to copy an image. Use its Paste method to paste the image.
 
Private Sub Command1_Click()
    Clipboard.Clear
    Clipboard.SetData Picture1.Picture, vbCFBitmap
    Command1.Enabled = False
    Command2.Enabled = True
End Sub

Private Sub Command2_Click()
    Picture2.Picture = Clipboard.GetData(vbCFBitmap)
End Sub
 
Formatted by Neil Crosby
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated