Need Help With Flickering Problem When I Dispose User Controls From a .NET DialogBox
Posted on 2011-09-17
I am building a VB.NET PC application using VS 2008 and .NET Framework 3.5.
I am trying to dispose several hundred User Controls instantiated programmatically in a dialog popup by executing disposal code connected to a "Reset" button handler. My code is shown in the code snippet.
The code in the FOR loop is the problem. Instead of quickly disposing the User Controls, the system "flickers" for 30-60 seconds as it disposes each one individually (then the rest of the code runs quickly).
Any help would be most appreciated.
Thanks, Stu Engelman