private void subWay_Click(object sender, EventArgs e) { clear(); TextBox t = (TextBox)sender; MyControls.KeyBorad k = new MyControls.KeyBorad(t); k.Location = new Point(groupBox2.Location.X, groupBox1.Location.Y - 40); //使控件可移动 ControlMoveResize c = new ControlMoveResize(k, this); this.Controls.Add(k); //置于顶层 k.BringToFront(); }
/// <summary> /// 按枪支编号查询枪支信息(调出软键盘) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void query_gun_Click(object sender, EventArgs e) { clear(); TextBox t = (TextBox)sender; MyControls.KeyBorad k = new MyControls.KeyBorad(t); k.Location = new Point(t.Location.X, t.Location.Y + 120); //使控件可移动 ControlMoveResize c = new ControlMoveResize(k, this); this.Controls.Add(k); //置于顶层 k.BringToFront(); }