@H_502_0@Private Sub TextBox1_KeyPress(ByVal sender As Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress @H_502_0@ If Char.IsDigit(e.KeyChar) Or e.KeyChar = Chr(8) Then @H_502_0@ e.Handled = False @H_502_0@ Else @H_502_0@ e.Handled = True @H_502_0@ End If @H_502_0@End Sub |
@H_502_0@Private Sub TextBox1_KeyPress(ByVal sender As Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress @H_502_0@ If Char.IsDigit(e.KeyChar) or e.KeyChar = Chr(8) or e.KeyChar = "." Then @H_502_0@ If e.KeyChar = "." And InStr(TextBox1.Text,".") >0 Then @H_502_0@ e.Handled = True @H_502_0@ Else @H_502_0@ e.Handled = False @H_502_0@ End If @H_502_0@ Else @H_502_0@ e.Handled = True @H_502_0@ End If @H_502_0@End Sub |
@H_502_0@Private Sub TextBox1_KeyPress(ByVal sender As Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress @H_502_0@ If Char.IsDigit(e.KeyChar) Or e.KeyChar = "." Or e.KeyChar = Chr(8) Then @H_502_0@ If e.KeyChar = "." And InStr(TextBox1.Text,".") >0 Then @H_502_0@ e.Handled = True @H_502_0@ Else @H_502_0@ e.Handled = False @H_502_0@ End If @H_502_0@ ElseIf e.KeyChar = "-" And TextBox1.Text = "" Then @H_502_0@ e.Handled = False @H_502_0@ Else @H_502_0@ e.Handled = True @H_502_0@ End If @H_502_0@End Sub |
@H_502_0@Private Sub TextBox1_KeyPress(ByVal sender As Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress,TextBox2.KeyPress,TextBox3.KeyPress |
@H_502_0@Private Sub TextBox1_KeyPress(ByVal sender As Object,TextBox3.KeyPress @H_502_0@ If Char.IsDigit(e.KeyChar) Or e.KeyChar = "." Or e.KeyChar = Chr(8) Then @H_502_0@ If e.KeyChar = "." And InStr(CType(sender,TextBox).Text,".") >0 Then @H_502_0@ e.Handled = True @H_502_0@ Else @H_502_0@ e.Handled = False @H_502_0@ End If @H_502_0@ ElseIf e.KeyChar = "-" And CType(sender,TextBox).Text = "" Then @H_502_0@ e.Handled = False @H_502_0@ Else @H_502_0@ e.Handled = True @H_502_0@ End If @H_502_0@End Sub |