Statiscuro
asked on
Displaying progress during execution
Hi, I have a small app that updates a bunch of database records. The problem is that this process takes a long time and I'd like to display a simple textbox to show the current percentage complete.
At the moment, I update this textbox in the method that is executing, then call 'this.Invalidate()' then 'this.Refresh()' and it seems to work. Problem I have is when the app is resized or loses focus or whatever, it stops updating. What is the correct way to implement this type of scenario?
At the moment, I update this textbox in the method that is executing, then call 'this.Invalidate()' then 'this.Refresh()' and it seems to work. Problem I have is when the app is resized or loses focus or whatever, it stops updating. What is the correct way to implement this type of scenario?
http://www.c-sharpcorner.com/winforms/ProgressStatusBarTimersJSYO.asp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.