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.

So ? Can somebody help me ?

Set obj.TopMost=true.

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

Thank you very much , God Bless You !

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!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.