Re: translucent panel...
- From: "Ben Callister" <bcallister@xxxxxxxxxxxxxxxx>
- Date: Fri, 7 Apr 2006 11:03:07 -0500
hi Bob-
when i try doing exactly as suggested below in my form's Load( ) event, it
indeed sets the background of the panel to blue, but its not translucent at
all. am i doing something wrong?
and are you saying that there is no way (yours or Luke's) to accomplish what
i need to do?
thanks and please advise,
ben
"Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:utfkytaWGHA.404@xxxxxxxxxxxxxxxxxxxxxxx
Try setting your form BackColor to a value created by Color.FromARGB such
as:
panel1.BackColor=Color.FromArgb(128,Color.Blue);
Unfortunately, neither my solution nor Lukes addresses the opacity of
child controls.
The Opacity system is really only available to toplevel windows because it
uses the LayeredWindow API under the covers.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Ben Callister" <bcallister@xxxxxxxxxxxxxxxx> wrote in message
news:%23lXjm$OWGHA.2268@xxxxxxxxxxxxxxxxxxxxxxx
i need to be able to adjust the opacity of a Windows Forms 'Panel'
control. currently, this is available on Forms, but not on Panel controls.
can someone please show me a trick to make this happen with panels or any
other control that i can use without having to display another
Window/Form?
much appreciated,
ben
.
- References:
- translucent panel...
- From: Ben Callister
- Re: translucent panel...
- From: Bob Powell [MVP]
- translucent panel...
- Prev by Date: WindowsService stops just after it's started - remoting
- Next by Date: Re: Problem with multithreaded application (Cont.)
- Previous by thread: Re: translucent panel...
- Next by thread: Re: translucent panel...
- Index(es):
Relevant Pages
|