TextBoxIntFilter() public static method

public static TextBoxIntFilter ( object sender, KeyPressEventArgs e ) : void
sender object
e System.Windows.Forms.KeyPressEventArgs
return void
Esempio n. 1
0
 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;
     }
 }