Form scroll when docked

Hi,

I am docking a form in the dockingmanager as follows:

       dockManager.SetDockVisibility(panelSubMenu, false);
       frm.FormBorderStyle = FormBorderStyle.None;
       dockManager.LockHostFormUpdate();
       dockManager.LockDockPanelsUpdate();
       dockManager.SetEnableDocking(frm, true);
       dockManager.SetDockIcon(frm, 0);
       dockManager.SetDockLabel(frm, frm.Text);
       dockManager.SetWindowMode(frm, WindowMode.Document);
       dockManager.DockAsDocument(frm);
       dockManager.UnlockHostFormUpdate();
       dockManager.UnlockDockPanelsUpdate();

The form frm has AutoScroll set to true, however when docked, i cannot see the scrollbars. Is there any property to be enabled fo


1 Reply

SS Sekar Sivalingam Syncfusion Team June 25, 2025 05:35 AM UTC

Hi Farzin Hameed,

Thank you for reaching out.

We’ve reviewed your query and created a sample application to test the scenario you described. In our testing, we were able to see the scrollbars in both the docked and document states without any issues.


We did notice that in your code, the WindowMode is set to Document, whereas in our sample, we used the Tool mode, which supports docking, floating, auto-hide, and MDI/TDI states.
Documentation: https://help.syncfusion.com/windowsforms/docking-manager/tdi-window#window-mode

To assist you further, we’ve attached our sample for your reference. If you're still experiencing the issue, we kindly request you to modify our sample to reproduce the problem and share it back with us. This will help us investigate the issue more effectively.

Please let us know if you have any questions or need further assistance.


Regards,
Sekar Sivalingam


Attachment: DockingManager_demo_2a6dee81.zip

Loader.
Up arrow icon