I’ve googled this and have gotten a wide variety of solutions, all extremely confusing to understand, and even copy and pasting the code doesn’t work, they’re also from multiple years ago and could probably be done better today. Basically im using a c# forms app and am trying to copy an image to the clipboard, it successfuly copies, except the background of the image is gray, when it should be transparent. What’s the best simplest solution to this?


I found this:
https://stackoverflow.com/questions/44177115/copying-from-and-to-clipboard-loses-image-transparency/46424800#46424800
Basically says you need to copy multiple formats into the ClipBoard.
Is there a dumb down version of this cus even copy and pasting this didnt work
C# devs
null reference exceptions

source