Solved

how do you threed in vb.net

Posted on 2006-10-19
7
315 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
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.

 

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

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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

13 Experts available now in Live!

Get 1:1 Help Now