0

Hello guys. I made a Windows Form , with some buttons. Each button contains a windows form. If i press a button , the new windows form appear above the Principal Windows Form. But , if I don't close it , and i press another button , the new windows form appear instead of the before windows form ( secondary ) , but it appears behind the Principal Form.

So , i want like the Secondary windows Form , to appear above ( in front ) the Principal Form.

2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by __avd
0

Set obj.TopMost=true.

Form2 frm = new Form2();
frm.TopMost = true;
frm.Show();
Form2 frm = new Form2();
frm.Show();
frm.BringToFront();
0

You're welcome
I'm glad you got it working. Please mark this thread as solved if you have found an answer to your question and good luck!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.