title: How to do subtract from two textbox on textchanged event in VB.Net
body: <p>I am new in vb.net. I have two text box. txtCash, txtCreditAmt.
  look at the code sample. it is working but the problem i am facing problem when i am going to type decimal number. when i tried to type 14 is okay but when i tried to type 14.98 it is typing 1498. very surprisingly point(.) not accepting at all. in vb6 same type of code are working fine. How i can solve this issue?</p>
  
  <pre><code>    Private Sub txtCash_TextChanged(sender As Object, e As EventArgs) Handles txtCash.TextChanged
      txtCreditAmt.Text = Val(lblTotalAmt.Text) - Val(txtCash.Text)
      txtCashTenered.Text = Val(txtCash.Text) + Val(txtCreditAmt.Text)
      SendKeys.Send("{End}")
  End Sub
  </code></pre>