Here is how my setup looking:
This is the DockPanel suite. The white area is dockPanel visual component I has dropped on form. I don't need any docking, nested docking, droppable tabs, etc. I just need one "ProjectsForm" panel and want it to auto hide and hide by user clickings.
So, my questions is how can I transform previous picture to look like this new one:
How can I forbid to make this one panel float?
Here is some code:
private void MainForm_Load(object sender, EventArgs e)
{
DockContent dockProjectsContent = new ProjectsForm();
dockProjectsContent.AllowDrop = false;
dockProjectsContent.AllowEndUserDocking = false;
dockProjectsContent.ShowHint = DockState.DockLeft;
dockProjectsContent.Show(dockProjects);
}