bornbroke Posted June 2, 2005 Posted June 2, 2005 Hi, The program draws an image directly to the Form and not to a picturebox. hDC = User.GetDC(Me.Handle) EnableOpenGL(hDC) 'draw code follows ... How can I copy this image drawn to the form to the clipboard? 'Clipboard.SetDataObject(Picturebox1.image) If this was drawn to a picbox ' How do I convert the above command?? '??? Is this possible? Or do I have to use a picturebox??? Although I know that a picturebox would simplify my problem, there is another issue with regards of using a picturebox, therefore, if possible I would like to avoid using it. However, if it is impossible!! please mention it so I won't spend any more time trying. thanks. Quote
*Experts* Bucky Posted June 2, 2005 *Experts* Posted June 2, 2005 Instead of painting directly on the form, I would do the drawing to some Bitmap variable of the same dimensions of the form's region. After all the drawing on the Bitmap is completed, then paint the Bitmap itself on the form. In addition to reducing flicker, this will also enable you to easily use Clipboard.SetDataObject(). Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.