Form::ShowDialog() shows the form as amodal dialog box. (the code following it is not executed until after the dialog box is closed.)
to show two instances of the same form:
a. create two instances of the Form (you seem to already have one instance, so create one more)
b. call Form::Show() on each of them.
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287
Like vijayan121 already pointed out, you need to use the Show() method instead of the ShowDialog(). So try ...
private: System::Void button2_Click_3(System::Object^ sender, System::EventArgs^ e)
{
this->form22instance.Show();
this->form4instance.Show();
}
mitrmkar
Posting Virtuoso
1,809 posts since Nov 2007
Reputation Points: 1,105
Solved Threads: 395