I got a problem regarding modal forms. see, i have loaded(showdialog) a modal form. now this form has a button that loads(showdialog) another modal form. The problem is, when i close the 2nd modal form. The modal form that called the 2nd also closes. i cant seem to get around this behavior. My code is something like this:
Form1 f1 = new Form1();
Form1.Owner = this; // 'this' is an MDIForm
on button click on form1:
form2 f2 = new form2();
f2.Owner = this; // even if this is omitted, the f1 still closes when you close f2 via the 'X' button
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.