コード例 #1
0
 private void btnRecordMacro_Click(object sender, EventArgs e)
 {
     rb          = new RecordBox(this);
     rb.TopLevel = false;
     rb.Dock     = DockStyle.Fill;
     rb.Visible  = true;
     Controls.Add(rb);
     rb.BringToFront();
 }
コード例 #2
0
ファイル: KBM360.cs プロジェクト: tirth/DS4Windows
 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; };
 }
コード例 #3
0
ファイル: KBM360.cs プロジェクト: threax/DS4Windows
 private void btnMacro_Click(object sender, EventArgs e)
 {
     gBExtras.Controls.Add(cBScanCode);
     cBScanCode.Location = new Point(20, 320);
     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 = new Point(663, 8); ActiveControl = lBMacroOn; };
 }