Intra-Thread communication

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Just Tom (JustTom_at_TomJust.JustTom.COMmunist.com)
Date: 03/16/04


Date: Mon, 15 Mar 2004 22:15:21 -0800

I have a Winform that will spawn a thread to work on each file within a
directory. For each FileSystemInfo in this directory, it will get the hash
of that file. If the FileSystemInfo is infact another directory, I will
spawn another thread and repeat the whole process. However I want to keep
track of which directory is being parsed, so I want to list this in a Text
box back in the Winform. Here is my problem.

How do I get a thread to communicate back to the Winform the directory that
it is operating upon? The thread knows nothing about the form's class as
the thread is not instantiating that class. Everything I have tried so far
does not work.

Can somebody point me in the right direction?



Relevant Pages

  • Intra-Thread communication
    ... For each FileSystemInfo in this directory, ... spawn another thread and repeat the whole process. ... box back in the Winform. ... the thread is not instantiating that class. ...
    (microsoft.public.vsnet.general)
  • Re: Intra-Thread communication
    ... thus you'll need Invoke method of form. ... For each FileSystemInfo in this directory, ... > spawn another thread and repeat the whole process. ... > box back in the Winform. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Intra-Thread communication
    ... thus you'll need Invoke method of form. ... For each FileSystemInfo in this directory, ... > spawn another thread and repeat the whole process. ... > box back in the Winform. ...
    (microsoft.public.dotnet.framework)
  • Re: Intra-Thread communication
    ... thus you'll need Invoke method of form. ... For each FileSystemInfo in this directory, ... > spawn another thread and repeat the whole process. ... > box back in the Winform. ...
    (microsoft.public.vsnet.general)
  • Intra-Thread communication
    ... For each FileSystemInfo in this directory, ... spawn another thread and repeat the whole process. ... box back in the Winform. ... the thread is not instantiating that class. ...
    (microsoft.public.dotnet.framework)