Hi,
Thanks Joe, It seems work fine on my system.
Opacity will set this to true internally, and you need to set it back to
false as soo as you needn't transparency.
Kind regards,
Ying-Shen Yu [MS]
Microsoft Support Engineer
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2001 Microsoft Corporation. All rights
reserved.
--------------------
| Message-ID: <
[email protected]>
| Date: Wed, 03 Sep 2003 21:50:17 -0500
| From: Joe White <
[email protected]>
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2)
Gecko/20030208 Netscape/7.02
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Subject: Re: Slow painting of semi-transparent forms
| References: <
[email protected]>
| Content-Type: text/plain; charset=us-ascii; format=flowed
| Content-Transfer-Encoding: 7bit
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| NNTP-Posting-Host: ip68-96-138-248.om.om.cox.net 68.96.138.248
| Lines: 1
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:51595
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
|
| Try setting the form's AllowTransparency property to false, and see if
| that helps. (I haven't actually tried this yet -- I just took a quick
| stroll through the code using Reflector. But AllowTransparency
| certainly looks promising, both in its name and its code.)
|
|
| J Moore wrote:
| > I am continously setting the BackColor property of the
| > main form to achieve a fading color effect. This works
| > well enough until I change the Opacity property to
| > anything less than 1.00. Now the form paints so slowly as
| > to consume a huge amount of processor time. When I reset
| > the Opacity back to 1.00, the form still paints very
| > slowly.
| >
| > How do I reset the behavior of the form back to default
| > fast painting for full Opacity?
|
|