Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 453
  • Last Modified:

how to tell when thread has finished vb.net

Hi

I need to be able to tell when a thread has finished so I can run some procedures. I do not want to sit and wait for it so is there an event or something that is raised?

Thanks Nick Steele
0
nsteele84
Asked:
nsteele84
  • 2
  • 2
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
There are many ways to do it...the "best" approach is highly dependent upon the type of application and how the "flow" of what you're doing fits into the "big picture".

Can you give more details on the type of app, version of VB, what is being done, and when "it" is firing off?
0
 
nsteele84Author Commented:
The application is an FTP upload. I use the thread to upload the files but when it is finished I need to update a tree view which is in the main thread.
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Ok...so we're talking a WinForms app then?  What version VB?
0
 
nepaluzCommented:
use the backgroundworker to run your threads and handle the OnComplete event. e.g have a messagebox or update a label with your chosen notification
0
 
nsteele84Author Commented:
Thats what I was looking for thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now