public UI_CoreForm() { InitializeComponent(); thisForm = this; this.FormClosing += UI_CoreForm_FormClosing; cfForm = new UI_CanvasForm { TopLevel = false, Dock = DockStyle.Fill, }; this.Controls.Add(cfForm); cfForm.Location = new Point(0, pnSideBar.Size.Height); cfForm.Show(); cfForm.BringToFront(); //For Horizontal tab-style menu in coreform //xPadding = (Width - cfForm.Width); //coreYPadding = pnTopBar.Height; //yPadding = (Height - cfForm.Height) - coreYPadding; //For Vertical tab-style menu in coreform yPadding = (Height - cfForm.Height); corePadding = pnSideBar.Width; xPadding = (Width - cfForm.Width) - corePadding; //UICore.SetRTCColor(UICore.GeneralColor); }
public UI_CoreForm() { InitializeComponent(); thisForm = this; cfForm = new UI_CanvasForm(); cfForm.TopLevel = false; cfForm.Dock = DockStyle.Fill; this.Controls.Add(cfForm); cfForm.Location = new Point(0, pnTopBar.Size.Height); cfForm.Show(); cfForm.BringToFront(); //For Horizontal tab-style menu in coreform //xPadding = (Width - cfForm.Width); //coreYPadding = pnTopBar.Height; //yPadding = (Height - cfForm.Height) - coreYPadding; //For Vertical tab-style menu in coreform yPadding = (Height - cfForm.Height); corePadding = pnTopBar.Width; xPadding = (Width - cfForm.Width) - corePadding; }