void OpenRecordBox(int i) { rb = new RecordBox(this, i); rb.TopLevel = true; rb.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; rb.ShowDialog(); }
private void btnRecordMacro_Click(object sender, EventArgs e) { rb = new RecordBox(this); rb.TopLevel = true; rb.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; rb.ShowDialog(); }
private void btnMacro_Click(object sender, EventArgs e) { gBExtras.Controls.Add(cBScanCode); cBScanCode.Location = new Point(lBTip.Location.X, lBTip.Location.Y + lBTip.Size.Height); rb = new RecordBox(this); rb.TopLevel = false; rb.Dock = DockStyle.Fill; rb.Visible = true; Controls.Add(rb); rb.BringToFront(); rb.FormClosed += delegate { Controls.Add(cBScanCode); cBScanCode.Location = oldSC; ActiveControl = lBMacroOn; rb = null; }; }