Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

How to: Create and float a panel

In the following example a new panel is created and floated in the bottom right corner of the screen.

using DevExpress.XtraBars.Docking;
// ...
// Create a panel and make it floated.
DockPanel p1 = dockManager1.AddPanel(DockingStyle.Float);
p1.Text = "Panel 1";
// ...
p1.FloatSize = new Size(100, 150);
Point pt = new Point(Screen.PrimaryScreen.WorkingArea.Width - p1.Width, 
  Screen.PrimaryScreen.WorkingArea.Height - p1.Height);
// Move the panel to the bottom right corner of the screen.
p1.MakeFloat(pt);