Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi Thread Callback? 1

Status
Not open for further replies.

wdp

Programmer
Nov 25, 2002
16
0
0
GB
Can you help? Im trying to run an import routine and update the client screen progress bar at the same time.

I can create a thread and drop the class into it but I understand that you should never change controls on the users screen with any other thread other than the thread that created them (in this case Main())

Does anybody have any example code to do this

Thanks...
 
Hi,

In order to be safe, you need to write a controller interface that handles the comunication between your initial thread and the backgroupd thread while the background thread is working. It takes a little code, but it is all explained at
Good luck
[pipe]

Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top