private void Title_DoubleClick1(object sender, EventArgs e) { parent.RemoveTab(this); FloatingForm f = new FloatingForm(); f.slate.Controls.Add(this.control); f.Show(); parent.ArrangeTabs(); flagGrip = 0; }
private void Title_MouseMove(object sender, MouseEventArgs e) { if (flagGrip == 1) { if ((y + 5) == MousePosition.Y || (y - 5) == MousePosition.Y) { //Create Floating Window parent.RemoveTab(this); FloatingForm f = new FloatingForm(); f.slate.Controls.Add(this.control); f.Show(); parent.ArrangeTabs(); flagGrip = 0; } } }