Almendro Almendro -4 years ago 48
C# Question

Multiple forms, child form is stuck behind main form

As the title suggests, I have two forms, when I run the app the main form is not minimizable or moveable. The second form is stuck behind the main, even if I maximize it. The main form will still be in front. Am I guessing there is a setting I need to change? Below is the code to create the second form.

Reports rep = new Reports();
rep.Show();

Answer Source

Try passing in the current form

Reports rep = new Reports();
rep.Show(this);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download