protected override void OnKeyPress(KeyPressEventArgs e) { if (e.KeyChar == 13) { this.SelectNextControl(this.ActiveControl, true, true, true, true); } base.OnKeyPress(e); } private void txt_UseName_KeyPress(object sender, KeyPressEventArgs e) { OnKeyPress(e); }
时间: 2024-12-16 00:46:00