private void InternalConstruct(DockContainer dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds) { if (dockPanel == null) { throw (new ArgumentNullException(ResourceHelper.GetString("FloatWindow.Constructor.NullDockPanel"))); } _dockList = new DockList(this); FormBorderStyle = FormBorderStyle.SizableToolWindow; ShowInTaskbar = false; SuspendLayout(); if (boundsSpecified) { Bounds = bounds; StartPosition = FormStartPosition.Manual; } else { StartPosition = FormStartPosition.WindowsDefaultLocation; } if (Environment.Version.Major == 1) { _dummyControl = new DummyControl(); _dummyControl.Bounds = Rectangle.Empty; Controls.Add(_dummyControl); } _dockPanel = dockPanel; Owner = DockPanel.FindForm(); DockPanel.AddFloatWindow(this); if (pane != null) { pane.FloatWindow = this; } ResumeLayout(); }