Hello,
I have an application with two forms.
In the form1 class, I have a method that shows a modeless form as follows:
Form2 _Form2 = new Form2();
_Form2.Show(this);
Now the characteristics of this form2 are that it is always on top and minimizing Form1 minimizes all forms. I do not want this. I want each form to be independent. Now it gets a little more complicated.
I can do a
_Form2.Show(); without the "this" but then the code in form 2 no longer has access to the methods in Form 1. There is another method in Form1 that has to have the same instance available for all forms (there is a form 3 and form 4) because there is shared code to control a serial port and there is a locking mechanism to prevent calls to the serial port code from interfering with each other.
So, how can I make the two forms independent and still keep the reference?
Thanks for any help!