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 / Windows Forms / WinForm General / April 2005

Tip: Looking for answers? Try searching our database.

Form Opacity - setting it back to 100%

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phil Jones - 15 Apr 2005 01:50 GMT
I'm doing some stuff with the Form's Opacity property.

Basically I'm changing it's opacity to less than 100% when it's being moved,
and then resetting it to 100% upon completiong.

What I find is that after the Opacity property has been adjusted (to
anything), and then reset to 1, the form takes a long long time to redraw
and is slow to move.  I assume this is because Window's is still calculating
the background image/opacity image (or whatever the opacity process is)  -
despite being reset to 100%.

Has anyone else experienced this - and is there a workaround to reset the
form back to 100% just as it was when it is created.

Many thanks.
===
Phil
Andrew Smith \(Infragistics\) - 16 Apr 2005 17:42 GMT
The window is still a layered window even after setting the form's opacity
back to 1. To get around this, set the AllowTransparency property to false
when you want the form to be opaque.

> I'm doing some stuff with the Form's Opacity property.
>
[quoted text clipped - 13 lines]
> ===
> Phil
Phil Jones - 21 Apr 2005 07:12 GMT
Brilliant - Many thanks Andrew!

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.