Solved

how do you threed in vb.net

Posted on 2006-10-19
7
314 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

15 Experts available now in Live!

Get 1:1 Help Now