You don't need to run fob.Show() in a separate thread. It can run in the same thread as the main window. You can, however, update the window/dialog from another thread by using delegates.
...Glenn On Wed, Oct 29, 2008 at 6:25 AM, asit <[EMAIL PROTECTED]> wrote: > > I have created a windows form in side another form. I have also > created a thread and want to run the 2nd form from first one so that > at anytme both the forms are ineractive. > > the code is > > ArrayList al = new ArrayList( ); > ....... > ...... > > Form2 fob = new Form2( ); > Thread thd = new Thread(fob.Show ); > al.add(thd); > thd.Start( ); > > In the above code al is the placeholders of all the threads(windows > forms). > > But when I run the program, the 2nd form appeared only for momentarily > and disappeared. > > Please help me.
