When I set a control as an MDI child, the first thing I do to it is
DockingWrapperForm lWrapperForm = aControl.Parent as DockingWrapperForm;
if(lWrapperForm != null)
{
lWrapperForm.ShowIcon = false;
}
Which hides the icon correctly. However, when I maximize that same window the icon reappears. It seems that in the maximized state, the DockingWrapperForm is ignoring the value of ShowIcon. Any suggestions on how I can hide this icon while maximized?
MJ
Mano J
Syncfusion Team
June 10, 2008 06:44 AM UTC
Hi Justin,
It is not a problem with DockingManager. Even if you do the same for a normal form, it will display the default icon in maximized mode. It is the default behavior for MDI Child Forms.
private void Form1_Load(object sender, EventArgs e)
{
Form2 frm = new Form2();
frm.ShowIcon = false;
frm.MdiParent = this;
frm.Show();
}
Please let me know if you have any questions.
Regards,
Mano
AD
Administrator
Syncfusion Team
June 11, 2008 12:35 PM UTC
Is there an easy way to override this behavior and hide the icon?
FS
Fathima Shalini P
Syncfusion Team
June 16, 2008 01:27 PM UTC
Hi Justin,
As this is the default Windows behaviour, it is not possible to override this behaviour and hide the icon.
Please let me know if any concerns.
Regards,
Fathima