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.
Unfortunately, activation email could not send to your email. Please try again.

Remove DockingManager

Thread ID:

Created:

Updated:

Platform:

Replies:

90571 Oct 8,2009 06:02 AM Oct 12,2009 12:12 AM Windows Forms 3
loading
Tags: Tools
Mr. Sascha Wald
Asked On October 8, 2009 06:02 AM

Hi there,

I have a mainform on which I show a dockingpanel /slider under given circumstances via code:
****
...
If newDockingmanager Is Nothing Then newDockingmanager = New DockingManager
Dim currenttree As New TreeView
Dim newitem As TreeNode = New TreeNode("icsch")

currenttree.Nodes.Add(newitem)
newDockingmanager.BeginInit()
newDockingmanager.HostForm = Me.MainFrame
newDockingmanager.VisualStyle = VisualStyle.OfficeXP
newDockingmanager.DockControl(currenttree, Me.MainFrame, DockingStyle.Right, 150)
newDockingmanager.SetAutoHideMode(currenttree, True)
newDockingmanager.SetDockLabel(currenttree, "new Huch")
newDockingmanager.EndInit()

****

Now the question is: how can I remove the dockingmanager, and with it its controls inside, programmaticall?

regards
sascha

Mano J [Syncfusion]
Replied On October 8, 2009 08:48 AM

Hi Sascha,

You have to dispose as shown below:

newDockingManager.SetEnableDocking(tree, False)
currrenttree.Dispose()
currenttree = Nothing
newDockingManager = Nothing

Regards,
Mano

Mr. Sascha Wald
Replied On October 9, 2009 10:36 AM

yeap. That did the job. Thank you.

Nandakumar R [Syncfusion]
Replied On October 12, 2009 12:12 AM

Hi,

Thanks for the update.

Regards,
Nanda

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.

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.

;