We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MDI Window Enabled for Docking Showing Icon

Thread ID:

Created:

Updated:

Platform:

Replies:

74349 Jun 9,2008 06:54 PM UTC Jun 16,2008 01:27 PM UTC WinForms 3
loading
Tags: Tools
Administrator [Syncfusion]
Asked On June 9, 2008 06:54 PM UTC

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?


Mano J [Syncfusion]
Replied On 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


Administrator [Syncfusion]
Replied On June 11, 2008 12:35 PM UTC

Is there an easy way to override this behavior and hide the icon?


Fathima Shalini P [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;