954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

windows Form Looks Disable when open as child form in mdi

Hi
I Have MDI file it has menuitem on click of this I open my form1, again on form1
i have a button which open childform form2
I open my form2 on button_click

form2 frm = new form2(this);
frm.Location = new Point(0, 45);
frm.TopLevel = false;
frm.TopMost = false;
this.MdiParent.Controls.Add(frm);
frm.Show();

But My form2 border looks lighter in color compared to original color. also forms location how to set at Center of screen.when I open my form2 directly from MDI menuitem it open at center of screen also form borders also looks dark.
also How to disable form1 when form2 is open (like visual studio has CTRL+G ,in this your code UI is looks same as before but we cannot click on any item) also this form open in same window it is not opening as other window I need same solution using C#

Dragon Runner
Newbie Poster
1 post since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: