Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is this WinForms window rendering artifacts while dragging?

I'm supporting a .NET 4 WinForms app written in VB.NET and built w/ Visual Studio 2015. In Windows 7 things are fine, but in our Windows 10 testing there is a rendering problem with a form window in the main application window. Happens on multiple machines (all Dell laptops). Dragging form window quickly, and over the main window’s top or bottom edges (highlighted in yellow in screenshot), causes it to freak out and leave graphical artifacts, like so:

enter image description here

Are there window properties or settings that can be adjusted to prevent this?

thanks!

like image 484
mdelvecchio Avatar asked Oct 15 '25 13:10

mdelvecchio


1 Answers

The repainting issues are generally attributed to the fact that the main thread may be locked doing some process and is not able to repaint. Are you using multithreaded approach in your application. A good starting point would be to check if there is anything locking the main thread.

like image 155
Soham Dasgupta Avatar answered Oct 18 '25 15:10

Soham Dasgupta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!