Welcome to the Xceed Community | Help
Community Search  
More Search Options

DockManager Basic Question

Sort Posts: Previous Next
  •  04-21-2011, 4:29 PM Post no. 30220

    DockManager Basic Question

    I have just downloaded latest suite.  In trying the DockManager and reading documentation, it seems there is no way to visually design a form's or client controls docked controls, all has to be done in code.  Is this correct?  For instance, I just have a new form, dropped a Dock Manager on it and set Doc host to the form.  I dropped a panel on the form and want to dock it on the left of the form.  I see no property in desiner for toolwindows collection (or groups, etc) and am not able to manually dock the panel.

    So this all has to be done in code?  And just as a help, if form is form1 and panel is panel1, and Dock manager dropped on form is DocMgr with  DocHost set to form1, what would be the code on form load or initialization to doc the panel on the left of the form?

    Thanks.

  •  04-25-2011, 12:53 PM Post no. 30236 in reply to 30220

    Re: DockManager Basic Question

    Hi Glenn, 

    You are correct, this needs to be done from code, here's a sample snippet for docking the panel to the left:

     


    Public Class Form1


        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load



            Me.DocMgr.SuspendLayout()


            Dim window As ToolWindow = New ToolWindow(Panel1, "panel")


            DocMgr.ToolWindows.Add(window)


            window.DockTo(DockTargetHost.ClientHost, DockPosition.Left)

            DocMgr.ResumeLayout()


        End Sub

    End Class 


    Best Regards,

    Michel Dahdah
    Technical Support
    Xceed Software inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.