Copying the contents of a picture box to clipboard 
Author Message
 Copying the contents of a picture box to clipboard

Hi my name is Les. I need to find a way to copy the contents of a picture
box (which will have some text and some line graphics that were made using
the line (x1,y1)-(x2,y2) command. Thanks  for your help in advance.

Les



Thu, 20 Jul 2000 03:00:00 GMT  
 Copying the contents of a picture box to clipboard

Quote:

>Hi my name is Les. I need to find a way to copy the contents of a picture
>box (which will have some text and some line graphics that were made using
>the line (x1,y1)-(x2,y2) command. Thanks  for your help in advance.

>Les

Hi Les,

This code might help.

    Private Sub Command1_Click()

      Clipboard.Clear
      Call Clipboard.SetData(Picture1.Picture, vbCFBitmap)

    End Sub

If this doesn't work, you may have to play with different formats.
If you encounter problems using the Clipboard object, check out the
Knowledge Base article Q138909 which explains using API calls to do the
Clipboard operations.

Hope this helps

Sant



Sun, 23 Jul 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Copying DBGrid contents to clipboard (Or copying a table from a Data component to clipboard)

2. copying contents of one picture box to another

3. Copy picture: Clipboard -> Picture object

4. How to copy contents of control to clipboard?

5. Copy contents of a control to the clipboard

6. Copying form field contents & formatting to clipboard

7. Copy textbox-content to clipboard

8. How do I copy a the content of a row in a MSHFlexGrid to the Clipboard

9. Copy contents of Flex Grid cell to clipboard

10. Copying contents of listbox to clipboard,How?

11. Copying the content of a form to the clipboard

12. Problem copying picturebox contents to the clipboard.

 

 
Powered by phpBB® Forum Software