MDI child title bar, control box and minimize/maximize/close butto

G

Guest

HI,
I have and application with an outlook-style menu on the left which open an
MDI child on the right. The MDI child in opened maximized.
The problems are:
1. The MDI child also add additional gray title bar below the parent title
bar. (When it apears it "pushes" the left toolbar down, make it a bit
shorter).
2. This title bar also contains a default application icon on the left
3. The minimize, maximize and close buttons apears in gray on the right when
the user click over their supposed location. This is despite those lines in
the child form:
this.MaximizeBox = false;
this.MinimizeBox = false;
this.ControlBox = false;

I'm using .Net framework 1.1 running on XP professional SP2 and the
application is using UIPAB 2.0
The question is:
1. How can I get rid of the MDI child title bar, the icon and the
minimize/maximize/close buttons?
2. If I can't get rid of it altogether, there must be a way at-least to
remove the icon and the buttons from the title bar and prevent the title bar
from pushing down the toolbar.

Thanks,
Gwenda
 
J

Jeffrey Tan[MSFT]

Hi Gwenda,

Based on my understanding, you want to disable the Mdi child form's
Maximize and Minimize box and the gray titlebar.

Actually, we may set the child form's FormBorderStyle to
FormBorderStyle.None to get rid of the caption titlebar. Doing like this:
private void Form1_Load(object sender, System.EventArgs e)
{
Form2 frm = new Form2();
frm.MdiParent = this;
frm.FormBorderStyle = FormBorderStyle.None;
frm.ControlBox = false;
frm.MinimizeBox = false;
frm.MaximizeBox = false;
frm.Show();
frm.Dock = DockStyle.Fill;
}
It works well on my side.
=================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

Guest

"Jeffrey Tan[MSFT]" said:
Hi Gwenda,

Based on my understanding, you want to disable the Mdi child form's
Maximize and Minimize box and the gray titlebar.

Actually, we may set the child form's FormBorderStyle to
FormBorderStyle.None to get rid of the caption titlebar. Doing like this:
private void Form1_Load(object sender, System.EventArgs e)
{
Form2 frm = new Form2();
frm.MdiParent = this;
frm.FormBorderStyle = FormBorderStyle.None;
frm.ControlBox = false;
frm.MinimizeBox = false;
frm.MaximizeBox = false;
frm.Show();
frm.Dock = DockStyle.Fill;
}
It works well on my side.
=================================================
I tried it the way you have mentioned but it gives me flickering. i still
see the borders of the child form momentarily and then it vanishes just
giving a flicker which looks very awkward.

is there anyway to get rid of this flicker?
 
J

Jeffrey Tan[MSFT]

Hi Gwenda,

Thanks for your feedback!

I am not sure what other thing in your project causes the MDI child
flickering, actually it works well on my side. If you create a sample empty
MDI container form, just put this simple code snippet does the flicker
occurs?

private void Form1_Load(object sender, System.EventArgs e)
{
Form frm = new Form();
frm.MdiParent = this;
frm.FormBorderStyle = FormBorderStyle.None;
frm.ControlBox = false;
frm.MinimizeBox = false;
frm.MaximizeBox = false;
frm.Show();
frm.Dock = DockStyle.Fill;
}

I suggest you paste some code snippet for us to reproduce out your flicker
issue, then we can reproduce out this issue and can help you better. Thanks
======================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi Gwenda,

Have you tried my suggestion? Have you succeeded create the reproduce
sample project? Please feel free to tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top