Need a panel or user control with a truely transparent background

M

moondaddy

I want to use a panel control which sits on top of another object which as a
gradient background. when I set the background color of the panel to
transparent, it just picks the darkest color from the background underneath
it. How can I make the panel (or a user control to behave like a panel) to
allow gradient color from behind it to show as if it truly was transparent?

Thanks
 
M

moondaddy

Thanks that looks like a great article. Is there a sample of the same
control in vb.net? I'm having trouble writing it from c# to vb.net.

--
(e-mail address removed)
Bob Powell said:
The GDI+ FAQ explains how.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Check out February's edition of Well Formed.
Non-client drawing, Graphics Transform stack and Flood-Filling
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

moondaddy said:
I want to use a panel control which sits on top of another object which
as
 
Y

Ying-Shen Yu[MSFT]

Hi,
I've sent a VB.NET Version sample to you ,
please let me know if you did not receive it.

Best regards,

Ying-Shen Yu [MSFT]
Microsoft community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top