c# - Execute code during winform progress bar running -


i have small winform application , put progress bar on first running form. progress bar completes in 10 seconds , after progress bar completes next activity starts database call.

i want when progress bar runs 10 seconds, during time database call should work instead of calling after progress bar completes.

can explain or have sample code explain technique ??? in advance.

your issue arises fact running heavy duty work on user interface thread, holding thread doing anything.

to solve issue need run on separate thread , control.invoke progress bar control when needs update.

check out threading , ui on vs magazine.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -