public DesignerFrame() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // ctrlContainer = new ControlContainer(); MessageFilter.frmCtrlContainer = ctrlContainer; // ctrlContainer.TopLevel = false; //use as a sub form ctrlContainer.Location = new Point(8, 8); this.Controls.Add(ctrlContainer); ctrlContainer.Show(); overlay = new SelectionUIOverlay(ctrlContainer); overlay.Bounds = this.Bounds; overlay.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top))); this.Controls.Add(overlay); overlay.BringToFront(); overlay.Show(); }
public DesignerFrame() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // ctrlContainer = new ControlContainer(); //MessageFilter.frmCtrlContainer = ctrlContainer; // ctrlContainer.TopLevel = false;//use as a sub form ctrlContainer.Location = new Point(8,8); this.Controls.Add(ctrlContainer); ctrlContainer.Show(); overlay = new SelectionUIOverlay(ctrlContainer); overlay.Bounds = this.Bounds; overlay.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top))); this.Controls.Add(overlay); overlay.BringToFront(); overlay.Show(); }