private void M_txt_stt_KeyPress(object sender, KeyPressEventArgs e) { try { if (!Char.IsDigit(e.KeyChar) && !Char.IsControl(e.KeyChar)) { e.Handled = true; } } catch (Exception v_e) { CSystemLog_301.ExceptionHandle(v_e); } }