Setting DockPanel Width

2 posts, 0 answers
  1. Prad
    Prad avatar
    35 posts
    Member since:
    Apr 2008

    Posted 29 May 2008 Link to this post

    I walked through the list of forums for setting width of dockPanel on Dock Manager.

    Here is my scenario: (Design Time)
    1. I have a dockManager1 placed on my ShapedForm
    2. I add a dockpanel to the left. (Which Contains a tree structure)

    In the Load method, the rek calls for screem partitioned into two in Shell/Home Form. 

    private

    void Shell_Load(object sender, EventArgs e){

        dockingManager1.SuspendLayout();

         dockPanel1.Size =

    new System.Drawing.Size(200, dockPanel1.Size.Height);

        dockingManager1.ResumeLayout();

    }

    The width doesnt set and occupies half of my host screen (not good).

    Is there something wrong in what I am doing?? 

    Fix or workaround is appreciated!!!

    Pradeep

  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 30 May 2008 Link to this post

    Hi Pradeep,

    Thank you for writing.

    Your code is correct, and should work without any issues. Nevertheless, something specific to your scenario could be causing this undesired behavior. Please send me a small project that demonstrates this. You can do this by opening a new ticket in our support system. This will enable you to attach the project to the message.

    I am looking forward to your response.

    Best wishes,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top