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 / Managed C++ / January 2006

Tip: Looking for answers? Try searching our database.

Form visibility

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
talk2ayan@gmail.com - 19 Jan 2006 05:12 GMT
I need to change the opacity of some part of a form (e.g. vertically
1/2)....If i set opacity from property it affects the whole form. Can
anyone help me in this regard?
Bruno van Dooren - 19 Jan 2006 06:57 GMT
I don't think so. I think the only way to do something like this is to
- split your window into 2 windows, and then change the opacity of 1.
(sucks. i know). or
- overlay your main window on top of a second one. then make the main window
partly transparent. the part of your window that has the second window below
it will not seem transparent. (don't know if there are buttons on that part
or not. that would complicate things)

there is no 'easy' solution for your problem, afaik.

kind regards,
   Bruno.

"talk2ayan@gmail.com" schreef:

> I need to change the opacity of some part of a form (e.g. vertically
> 1/2)....If i set opacity from property it affects the whole form. Can
> anyone help me in this regard?
Ayan - 19 Jan 2006 11:56 GMT
Hey dude,

  I got the solution in MSDN. We just have to use TransparencyKey color
same as the BackColor of the portion of the form we want to make
transparent.

  Put a Panel on the Form. Make the BackColor of the Panel different
from that of the Form's. In the code write ...
this.TransparencyKey = BackColor;

  This will make the remaining portion of the Form fully transparent,
you can even click on the page that is behind your form.

Warm regards,
Ayan

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Bruno van Dooren - 19 Jan 2006 14:48 GMT
Hi,

I think i misunderstood your original query.

you can only use this to make one part of your screen completely
transparant, while the other part remains completely or partially opaque.

you cannot use this technique for example to make a part of your screen 50%
opaque while the rest stays the same. which is what i thought you asked for.

kind regards,
   Bruno.

"Ayan" schreef:

> Hey dude,
>
[quoted text clipped - 15 lines]
> Sent via .NET Newsgroups
> http://www.dotnetnewsgroups.com

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.