Solved

how to tell when thread has finished vb.net

Posted on 2011-03-25
5
443 Views
Last Modified: 2012-05-11
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
Comment
Question by:nsteele84
  • 2
  • 2
5 Comments
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 35218493
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
 

Author Comment

by:nsteele84
ID: 35218581
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
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 35218585
Ok...so we're talking a WinForms app then?  What version VB?
0
 
LVL 17

Accepted Solution

by:
nepaluz earned 500 total points
ID: 35218742
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
 

Author Closing Comment

by:nsteele84
ID: 35219756
Thats what I was looking for thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Setting runtime form location 4 29
Create XML 5 46
Visual Studio .Net 2012 and Crystal Reports 9 44
how to use laptop or pad camera in vb.net windows application 2 45
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
A short film showing how OnPage and Connectwise integration works.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now