Groups | Blog | Home
all groups > dotnet windows forms controls > may 2007 >

dotnet windows forms controls : VB.NET 2005 - Dragging window over app leaves "trails"


skinjob242 NO[at]SPAM yahoo.com
5/21/2007 1:21:33 PM
Greetings all,

I'm at a loss for fixing this problem, so I'm hoping someone out there has
seen this and has a solution. Basically, I'm working on an app written in
VB.NET 2005 which uses a mixture of native and custom controls. The app
works fine and everything displays correctly until I drag another window
over it. When I do that, there are trails left behind the window until I
stop dragging it, then the window behind redraws correctly. The strange
thing is that it only effects certain controls and they vary depending on
which combination of controls are covered.

The only suggestion I've found was to add the following line to the custom
control's New() subroutine:

Me.SetStyle(ControlStyles.UserPaint Or ControlStyles.OptimizedDoubleBuffer
Or ControlStyles.AllPaintingInWmPaint, True)

This didn't help.


Any suggestions are greatly appreciated.


Thanks!

Michael C
5/22/2007 12:00:00 AM
[quoted text, click to view]

Don't crosspost to so many groups.


[quoted text, click to view]

AddThis Social Bookmark Button