You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish to be able to toggle the behaviour of a form by making it dockable or non-dockable.
If I start the form with a simple Show() it obviously won't dock until I call Show( dockPanel) which works fine and the form gets docked. After floating it I want to remove it from DockPanel control so that it becomes non-dockable. I have tried DockHandler.DockPanel = null but this causes the form to disappear as does trying a Show() again. Any ideas?
Thanks
Scorecard sc = new Scorecard(this, null);
sc.Show(); // non-dockable
sc.Show(dockPanel); // dockable and docked
sc.Show(); // still docked
// release from docking but form disappears completely
sc.DockHandler.DockPanel = null;
I wish to be able to toggle the behaviour of a form by making it dockable or non-dockable.
If I start the form with a simple Show() it obviously won't dock until I call Show( dockPanel) which works fine and the form gets docked. After floating it I want to remove it from DockPanel control so that it becomes non-dockable. I have tried DockHandler.DockPanel = null but this causes the form to disappear as does trying a Show() again. Any ideas?
Thanks
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: