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. Image for the cookie policy date
close icon

MDI Docking Manager Icon

9 Replies

AD Administrator Syncfusion Team July 15, 2008 12:10 PM UTC

Hi Michael,

Thank you for using Syncfusion products.

Please try setting DockIcon in dockingManager1_NewDockStateEndLoad event handler as follows and let me know if this helps you.

[C#]

private void dockingManager1_NewDockStateEndLoad(object sender, EventArgs e)
{

this.dockingManager1.SetDockIcon(this.panel1, 0);
}

Sample link : http://websamples.syncfusion.com/samples/Tools.Windows/F75139/main.htm

Regards,
Jaya



AD Administrator Syncfusion Team July 15, 2008 01:11 PM UTC

I have updated the sample with the actions that I am doing. You will see that I change the icon when a different node is selected in the treeview. The icon updates fine if the panel is docked. But once it is set as an mdi child, it no longer gets updated.



Win_Tools_MDIChild_d01635e2.zip


AD Administrator Syncfusion Team July 22, 2008 05:24 PM UTC

Hi Michael,

The mentioned issue is suspected to be a defect and we have forwarded this issue to our development team for more analysis and will update you with more details on or before July 24th.

Please let me know if any concerns.

Regards,
Jaya



AD Administrator Syncfusion Team July 25, 2008 12:24 PM UTC

Have there been any updates on this?



AD Administrator Syncfusion Team July 29, 2008 09:21 AM UTC

Hi Michael,

Thank you for youe patience.

The SetDockIcon() method used for Docking controls in Dockable mode. If a dock control is in MDI mode, it is a normal form (DockingWrapperForm) - in that case SetDockIcon does not work, so we have to use Form.Icon for this purpose.

Please refer the below code snippet.

[C#]

if (this.dockingManager1.IsMDIMode(panel1))
{
DockingWrapperForm form = panel1.Parent as DockingWrapperForm;


if (form != null && index>0)
{
form.Icon = Icon.FromHandle(new Bitmap(this.dockingManager1.ImageList.Images[index]).GetHicon());

}
}




Please refer the sample for above illustrates.
http://websamples.syncfusion.com/samples/Tools.Windows/F_75139/main.htm

Please let me know if this helps.

Regards,
Hema



AD Administrator Syncfusion Team July 31, 2008 12:46 PM UTC

Thanks, that works great.



AD Administrator Syncfusion Team August 7, 2008 10:17 AM UTC

Hi Michael,

Thank you for the update.

Regards,
Hema




JS Jean-Pierre Semery March 8, 2018 02:14 PM UTC

What am I supposed to write here?


DR Durga Rajan Syncfusion Team March 9, 2018 07:14 AM UTC

Hi Jean-Pierre Semery, 

If you have any queries or any technical assistance with regards to Docking Manager, let us know. We will be happy to help you. 

Regards, 
Durga S. 


Loader.
Live Chat Icon For mobile
Up arrow icon