Cómo escribir el producto de a y b en vb
Agregar controles:
texto1, texto2, texto3, comando1 (botón)
'Código fuente: (haga doble clic en el control del botón y escriba el siguiente código)
Subcomando privado1_Click ()
a= texto1.text
b=text2.text
c=a*b
texto3 .text= c
End Sub
'Haz doble clic en el espacio en blanco del formulario y escribe el siguiente código
Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Command1.Caption = "Calcular"
End Sub
Cómo ejecutar el programa:
Ingrese el primer multiplicador en texto1. Ingrese el segundo multiplicador en text2
Después de hacer clic en el botón nuevamente
text3 generará el resultado.