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

Remove DockingManager

Thread ID:

Created:

Updated:

Platform:

Replies:

90571 Oct 8,2009 10:02 AM UTC Oct 12,2009 04:12 AM UTC WinForms 3
loading
Tags: Tools
Mr. Sascha Wald
Asked On October 8, 2009 10:02 AM UTC

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 12:48 PM UTC

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 02:36 PM UTC

yeap. That did the job. Thank you.

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

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.

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

;