DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 16 Jul 2007 11:12:08 -0400,    posted on: microsoft.public.dotnet.framework.sdk        back       

Thread Index
  1    AlexS LEASE


Winforms - window without caption - paint artefact   
Something not right when window is displayed with dynamic caption.

I have following code which enables/disables caption on key:

Me.ControlBox = Not Me.ControlBox

If Me.ControlBox Then

Me.FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable

Else

Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None

End If

Initially window is shown without caption and occupies full screen. 
Everything is OK.



When caption is displayed and then removed with this code, there is small 
arefact left on screen - part of caption to the right of last control button 
and screen area expanding below it. If there was bitmap overlapping this 
area, you can see remaining pixels. New bitmap is shown under this area 
(it's painted over new bitmap). Invalidate/Update doesn't change this.



Seemingly eigther I do something wrong, or .Net 2.0 painter. Could this be 
corrected and how?

Alex
Date:Mon, 16 Jul 2007 11:12:08 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us