Winforms slows windows entirely after manipulating form controls

CommanderLake 1 Reputation point
2022-04-05T02:24:07.867+00:00

If I create a form with several controls and manipulate or resize components or the form, windows itself will gradually get less responsive the more I manipulate the form and moving windows around the screen will get slower the more I manipulate the form to the point I try moving any window or even just the mouse not just the application I created and things just crawl across the screen and everything becomes almost unusable.
This is NOT caused by any code in the application, it does NOT use the CPU excessively, if the application is at a breakpoint or even if the process is suspended it will do the same thing.
The number of controls in the application seems to have an effect on the gradual decrease in responsiveness of the entire operating system but performance is normal then the application is first opened and returns to normal when closed.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,863 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,484 questions
{count} votes