)
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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set icon for docked control in WinForms Docking Manager?

Platform: WinForms |
Control: DockingManager |
Published Date: April 13, 2016 |
Last Revised Date: December 4, 2019

Icon settings

In Docking Manager, any control can be set as docking child. If user would like to set icon for the docked controls, that can be achieved by using its function named SetDockIcon. The following code examples demonstrates the same.

C#

 
// To add icon to the Child form which is Dockable
Form2 frm2 = new Form2();
frm2.TopLevel = false;
frm2.FormBorderStyle = FormBorderStyle.None;
this.dockingManager1.DockControl(frm2, this, DockingStyle.Left, 130);
this.dockingManager1.SetDockIcon(frm2, 1);
                      

 

VB

 
' To add icon to the Child form which is Dockable
Dim frm2 As New Form2()
frm2.TopLevel = False
frm2.FormBorderStyle = FormBorderStyle.None
Me.dockingManager1.DockControl(frm2, Me, DockingStyle.Left, 130)
Me.dockingManager1.SetDockIcon(frm2, 1)
 
 

                            

Set the icon for Docking control

Figure 1. To set icon for the Docked control.

 

Samples:

 

C#: How to add icon to the Child form which is dockable C#

VB: How to add icon to the Child form which is dockable VB

UG document link: https://help.syncfusion.com/windowsforms/dockingmanager/dock-window#add-icon-in-header-of-dock-window

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon