Click here to Skip to main content
15,905,971 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am developing an MDI appplication and the main form(parent)has a menu strip and a tool strip.
When child form is maximixed, its title bar is not visisble ,it seems it goes behind the main form's tool strip.but when it is restored down the title bar becomes visible.

Can anyone please help me in how to make the title bar visible even when the child form is maximized.

Thanks,
Dev.
Posted
Updated 20-May-14 0:34am
v2
Comments
Pikoh 20-May-14 7:55am    
I believe that's by design,when you maximize a child windows in MDI app its title bar becomes the app title bar. Have you considered using a label on top of your mdi child to display the title?

1 solution

Refer following code:
C#
private void FormMDI_Load(object sender, EventArgs e)
        {
            Form2 objForm2 = new Form2();
            objForm2.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            objForm2.ControlBox = false;
            objForm2.MdiParent = this;
            objForm2.Dock = DockStyle.Fill;
            objForm2.Show();
        }


Hope this will help you.
 
Share this answer
 
Comments
Devadutta Achary 20-May-14 7:50am    
I need to able to maximize the child form.And when the child form is maximized its title bar goes hidden.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900