> C# 2.0
>
[quoted text clipped - 4 lines]
>
> Thanks!
A winforms application is single threaded. So if you want to alter a
control on Form1 from Form2, you should call a method of Form1 from
Form2 (e.g. inside the eventhandler of the button) and that method of
Form1 then alters the progress bar.
FB

Signature
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Ryan Ramsey - 25 Aug 2006 05:48 GMT
So calling an event is easy... Put how would you do something like (from
form 1) form2.label.text = "data from form 1"
>> C# 2.0
>>
[quoted text clipped - 11 lines]
>
> FB