Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

Transparency

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 18 Oct 2004 05:17 GMT
Hi there,

I do not seem to be able to make my label controls (or any for that matter)
transparent.... they always show the colour of whatever they are sitting on.

Can VS.Net not handle this a function this basic? Or am I missing something?

Any helpful replies appreciated...
Matthew - 18 Oct 2004 05:34 GMT
> I do not seem to be able to make my label controls (or any for that
> matter)
[quoted text clipped - 3 lines]
> Can VS.Net not handle this a function this basic? Or am I missing
> something?

Yes, it can be done.  If you want to make the whole thing partially
transparent, change the form's opacity property.

I think you are really wanting to change the background to transparent,
though.
An excellent example of this was just posted by a gentlemen by the name of
Cor in a thread titled Skinning.
http://groups.google.com/groups?q=skinning+cor&hl=en&lr=&c2coff=1&selm=uw6Se0GtE
HA.2804%40TK2MSFTNGP14.phx.gbl&rnum=1


The short version is:
Form1.TransparencyKey = Form1.BackColor

Matthew
Bob Powell [MVP] - 18 Oct 2004 06:54 GMT
Windows Forms Tips and Tricks has an article on transparent Windows Forms
controls.

Signature

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

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

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml

> Hi there,
>
[quoted text clipped - 4 lines]
>
> Any helpful replies appreciated...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.