|
-
Oct 15th, 2002, 04:53 AM
#1
Thread Starter
Lively Member
** Resolved ** Paintpicture in picturebox
Hello,
In a Sub, I paintpicture, draw and write in a Picturebox :
Picture1.PaintPicture Image1(0).Picture, etc...
Picture1.Line etc..
Picture1.Print "writing in it"
In another Sub, I need to access the Picture1.Picture property to copy it in the clipoboard :
Clipboard.SetData Picture1.Picture, 2
Well... nothing happens, clipboard remains empty, and when watching the value of Picture1.Picture at this moment it is = 0 ! (but the graphics is still correctly drawn on the screen). Are the paintpicture, line etc.. operations "non permanent" ? How can I grab the content drawn on the picturebox to put it in th Clipboard.
Ideas ?
Thanks
Last edited by jimmymou; Oct 15th, 2002 at 05:57 AM.
-
Oct 15th, 2002, 05:53 AM
#2
Thread Starter
Lively Member
Ooops just found how to do it in a previous thread.
One has to persist the picture by setting the image to the picture property just after the graphic operation.
Picture1.Picture = Picture1.Image
JM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|