/// <summary> /// 去除TextBox的获取焦点事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TxtLimitOilGas_Enter(object sender, EventArgs e) { ActiveControl = null; // 这样Box就不会出现光标了 }