public static TextBoxIntFilter ( object sender, |
||
sender | object | |
e | ||
return | void |
private void tbInterval_KeyPress(object sender, KeyPressEventArgs e) { Utility.TextBoxIntFilter(sender, e); try { int.Parse(this.tbInterval.Text); } catch (Exception) { //this.tbInterval.Text = (this.timer1.Interval / 1000).ToString(); //throw; } }