You are on page 1of 1

Public Class Form1

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click


Dim tabla As Integer
tabla = TextBox1.Text
For n = 1 To 12
ListBox1.Items.Add(tabla & "x" & n & "=" & tabla * n)
Next n
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
TextBox1.Clear()
ListBox1.Items.Clear()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
If MsgBox("DESEA SALIR DE LA APLICACIN" + vbQuestion + vbYesNoCancel,
"Pregunta") = vbYes Then
End
End If
End Sub
End Class

You might also like