FileFind - Multithread

  • Thread starter Thread starter N.Naeem
  • Start date Start date
N

N.Naeem

I have a a program in vb6 which looks for a file in a folder structure
including subfolders, the folders could be more than 100 folders.
Once a particular file is found i start another instance of the program i.e.
via Shell which continues searching. The original instance then starts to
process the file and once done exits.
so basically you have a scenario where there is always an instance of the
program looking for a file.

Now due to the lack of multithreading in VB6 i was wondering wether it would
be a good step to undertake if i re-developed this in vb.net where the
processing file bit could just be another thread instead of calling another
instance of the program.

Is this possible and if so any pointers in how to go about it due to me
having very little knowledge of vb.net.

many thanks
 
* "N.Naeem said:
I have a a program in vb6 which looks for a file in a folder structure
including subfolders, the folders could be more than 100 folders.
Once a particular file is found i start another instance of the program i.e.
via Shell which continues searching. The original instance then starts to
process the file and once done exits.
so basically you have a scenario where there is always an instance of the
program looking for a file.

Now due to the lack of multithreading in VB6 i was wondering wether it would
be a good step to undertake if i re-developed this in vb.net where the
processing file bit could just be another thread instead of calling another
instance of the program.

Is this possible and if so any pointers in how to go about it due to me
having very little knowledge of vb.net.

What you want to do should be possible with multithreading.

Some links:

Multithreading + Windows Forms:

<URL:http://www.devx.com/dotnet/Article/11358/>

<URL:http://msdn.microsoft.com/library/e...SystemWindowsFormsControlClassInvokeTopic.asp>

Multithreading in Visual Basic .NET (Visual Basic Language Concepts)
<URL:http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconthreadinginvisualbasic.asp>

Sample in C#:

<URL:http://www.palmbytes.de/content/dotnet/filesearchlib.htm>
 
Back
Top