mark007 Posted August 24, 2005 Posted August 24, 2005 I have a picturebox on a form that displays a transparent gif all fine and well. I wish to copy this to the clipboard so I can paste it elsewhere. Unfortunately using the following: System.Windows.Forms.Clipboard.SetDataObject(f.PictureBox2.Image) Replaces the transparency with a dark blue. Any ideas on how I can achieve this? :) Quote Please check the Knowledge Base before you post. "Computers are useless. They can only give you answers." - Pablo Picasso The Code Net
Nate Bross Posted September 16, 2005 Posted September 16, 2005 Will you be pasting it onto another vb.net application? If so you could do something like this bitmap1.MakeTransparent(color.blue) Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
mark007 Posted September 16, 2005 Author Posted September 16, 2005 It's to be pasted as an icon on a toolbar in Excel. Thanks for the thoughts though... will see if it that can help at all. The whole code is something like: System.Windows.Forms.Clipboard.SetDataObject(f.PictureBox2.Image) b.PasteFace Where b is an Office CommandbarButton. Quote Please check the Knowledge Base before you post. "Computers are useless. They can only give you answers." - Pablo Picasso The Code Net
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.