ADAdministrator Syncfusion Team February 7, 2005 10:28 AM
There is a way to control docking behavior, the DockAllow event. The following code snippet from the user''s guide demonstrates this:
// DockingManager.DockAllow event handler
private void dockingManager1_DockAllow(object sender, Syncfusion.Windows.Forms.Tools.DockAllowEventArgs arg)
// Disallow all controls from being docked to the host Form''s left border
if((arg.TargetControl == this) && (arg.DockStyle == Syncfusion.Windows.Forms.Tools.DockingStyle.Left))
arg.Cancel = true;
Hope this helps.
SHStephan HofmannApril 3, 2005 06:35 AM
the given solution before is not working if the docking manager property DockToFill is set to TRUE. Then, you will always get "Fill" as checking value which doesn''t make sense in this situation.
ADAdministrator Syncfusion Team April 4, 2005 12:58 PM
I''ve checked this in our latest version and didn''t notice the behavior you''ve described. I''d recommend upgrading when we release v3.2 later this week, as it fixes a number of issues with Docking.