R
Rahul
Hello,
I am writing a program related to image compression in C# (GUI
Application). In that I have a "heavy, long running" method which
among other things, calls this.Invalidate(); to make the screen
refresh to display the changes in image during processing.
The problem is that, once the program enters this method, the GUI
Window becomes non-responsive (but GUI gets updated regularly due to
this.Invalidate()).
So, I want the GUI to stay responsive while executing this method.
I tried running the method in another thread but then I cannot call
this.Invalidate() because "this" is in parent thread, and it throws
error.
How can I keep my window responsive while running this method? Any
ideas?
I am writing a program related to image compression in C# (GUI
Application). In that I have a "heavy, long running" method which
among other things, calls this.Invalidate(); to make the screen
refresh to display the changes in image during processing.
The problem is that, once the program enters this method, the GUI
Window becomes non-responsive (but GUI gets updated regularly due to
this.Invalidate()).
So, I want the GUI to stay responsive while executing this method.
I tried running the method in another thread but then I cannot call
this.Invalidate() because "this" is in parent thread, and it throws
error.
How can I keep my window responsive while running this method? Any
ideas?