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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -