public DockingResize(DockingFormSample df) { if (df == null) { throw new ArgumentNullException("df"); } this.parent = df; this.parentBorderStyle = df.FormBorderStyle; this.Dock = df.Dock; }
public static void Main() { Form f = new Form(); f.IsMdiContainer = true; StatusBar sb = new StatusBar(); sb.Parent = f; DockingFormSample.statusBar = sb; f.Size = new Size(600, 600); DockingFormSample df = new DockingFormSample(f); df.Show(); Application.Run(f); }