Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

 

:)

Please check the Knowledge Base before you post.

"Computers are useless. They can only give you answers." - Pablo Picasso

The Code Net

  • 4 weeks later...
Posted
Will you be pasting it onto another vb.net application? If so you could do something like this
bitmap1.MakeTransparent(color.blue)

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted

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.

Please check the Knowledge Base before you post.

"Computers are useless. They can only give you answers." - Pablo Picasso

The Code Net

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...