Re: Can Somebody please explain

From: Steve McLellan (sjm.NOSPAM)
Date: 06/25/04


Date: Fri, 25 Jun 2004 18:20:24 +0100

Hi,

Check out
http://www.yoda.arachsys.com/csharp/multithreading.html

Near the bottom it's got some bits about Windows Forms and threading. If
you're receiving callbacks then you'll run into problems displaying stuff -
as a test, try getting the value of myForm.InvokeRequired - if that returns
true inside one of your callbacks, then you do indeed have a threading
issue.

Steve

"Girish Kunchum" <girishkr@gmail.com> wrote in message
news:150558D6-FED0-4069-9B2F-8EE06B7C8ED7@microsoft.com...
> I am calling a DTS Package in the Button Click event in a windows based
application writtern in VB.net. I have implemented withevents to get the
events back from the DTS. I am not able to display any of the messages on
any controls in the form. Only Console.writeline works
>
> My question is, I would like to know if the whole process is using 2
different threads. I am trying to understand why the screen blanks out if I
open some other window and come back and also as to why I am not able to
display the message I get back from the DTS. I am new to the concept of
multithreading and have no knowledge of how Invoke and BeginInvoke stuff
works. Please help me here.
>
> I am not sure if I need to post the entire code now. Will do so if I get
some response for this thread.
>
> Please Help