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
MJ
Mano J
Syncfusion Team
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
MS
Mr. Sascha Wald
October 9, 2009 02:36 PM UTC
yeap. That did the job. Thank you.
NR
Nandakumar R
Syncfusion Team
October 12, 2009 04:12 AM UTC
Hi,
Thanks for the update.
Regards,
Nanda