Solved

how do you threed in vb.net

Posted on 2006-10-19
7
316 Views
Last Modified: 2007-12-19
i have a program im trying to read the files off a drive and display them on a dataset(with saving them to a database too)

so id like to have it do this in a threed to speed it up some.
is there ** would like to see code examples ** or a good tutorial around explaining threeding

if more info is needed please ask

thank you  in advance for any help you may provide
0
Comment
Question by:Johnny
  • 3
  • 3
7 Comments
 
LVL 13

Assisted Solution

by:newyuppie
newyuppie earned 450 total points
ID: 17771542
i found this link that uses threading to search for a file in a directory.
http://blogs.msdn.com/dougturn/archive/2004/01/30/65271.aspx

if you are using .net 2 maybe BackgroundWorker instead of System.Threading is better (handles the threading safely automatically)

hope it helps you

NY
0
 
LVL 9

Assisted Solution

by:DjDezmond
DjDezmond earned 50 total points
ID: 17772027
Not trying to steal anyones points here... but this is a very usefuly MSI containing 101 example applications written by Microsoft. It explains multi-threading, sockets, async calls etc...

http://www.microsoft.com/downloads/details.aspx?familyid=08e3d5f8-033d-420b-a3b1-3074505c03f3&displaylang=en
0
 

Author Comment

by:Johnny
ID: 17773375
Thank you for the replies
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:Johnny
ID: 17773389
*smile* gota love the tab key and a cat hitting enter


where can i get info on BackgroundWorker this seams to be more of what im looking for

Again thanks for the replies so far
0
 
LVL 13

Accepted Solution

by:
newyuppie earned 450 total points
ID: 17773612
the MSDN documentation has very extensive examples on how to use this new class
http://msdn2.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx

or
you could try these links maybe for other examples:
http://www.codeguru.com/columns/vb/article.php/c10755/
http://www.itwriting.com/pcw/index.html

its not really that hard, the new framework makes it all very simple. hope that helps a bit

NY
0
 

Author Comment

by:Johnny
ID: 17773768
thank you very much
0
 
LVL 13

Expert Comment

by:newyuppie
ID: 17773869
thanks for the grade

NY
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

815 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

12 Experts available now in Live!

Get 1:1 Help Now