Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/11/2009, 17:00
klaudio83
 
Fecha de Ingreso: octubre-2009
Mensajes: 70
Antigüedad: 15 años, 4 meses
Puntos: 0
De acuerdo Respuesta: Multiplicar contenido de 2 textbox

Ya lo tengo muchas gracias
hay va el codigo por si alguien mas lo necesita

Código vb.net:
Ver original
  1. Private Sub txCantidad_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txCantidad.TextChanged
  2.         If txCantidad.Text = "" Or txPrecio.Text = "" Then
  3.             Exit Sub
  4.         End If
  5.         Dim total As Integer = CInt(txCantidad.Text) * CInt(txPrecio.Text)
  6.         txTotal.Text = total
  7.     End Sub
  8.  
  9.     Private Sub txPrecio_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txPrecio.TextChanged
  10.         If txCantidad.Text = "" Or txPrecio.Text = "" Then
  11.             Exit Sub
  12.         End If
  13.         Dim total As Integer = CInt(txCantidad.Text) * CInt(txPrecio.Text)
  14.         txTotal.Text = total
  15.     End Sub