On Windows platform, only one form(In windows programming, /form /in c# should be called/ //window/.) can be interactive at a certain moment, so you cannot make more than one forms to be interactive at the same time. If you can find an exception, please tell me :). Anyway, if you want to show a from and start the message loop, /Application.Run(new form1())/ should be used instead of /form.show()/.
> 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. > >
