how to know when a work in a thread is complete?

Posted by seinkraft on Stack Overflow See other posts from Stack Overflow or by seinkraft
Published on 2010-05-11T21:35:34Z Indexed on 2010/05/12 2:24 UTC
Read the original article Hit count: 227

Filed under:
|

I need to create multiple threads when a button is clicked and i've done that with this:

Dim myThread As New Threading.Thread(AddressOf getFile)
myThread.IsBackground = True
myThread.Start()

but i need to update a picture box with the downloaded file, buy if i set an event in the function getFile and raise it to notify that the files was downloaded and then update the picturebox.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about threads