0
Private Sub txtPricePerQty_TextChanged(sender As System.Object, e As System.EventArgs) Handles txtPricePerQty.TextChanged
Dim i As Double = 0
i = CDbl(Val(txtQty.Text) * Val(txtPricePerQty.Text))
i = Math.Round(i, 2)
txtTotalAmount.Text = i
End Sub
and what I have to do?
– Mario Meireles
It is advisable to receive the values that are coming from the field in variables compatible with the type of data that you want to be calculated, as the own double, after that do the calculations based on the variables, debug before to see if the values are correct (debug.print).
– Victor Henrique
but the variables are all as double
– Mario Meireles