Pasos para crear una tabla de multiplicar. (SEMANA 27)

 Proceso:


1.Iniciar el programa.

2.Apertuamos un EXE ESTANDAR.

3.En el formulario insertamos los siguientes objetos (label, 2 textbox y 3 comandbutton).

4.Adjuntamos los códigos de los comandbutton.

Private Sub Command1_Click()                                                                  
    Dim N As Integer
 
N = Val(Text1.Text)
 
    For i = 1 To 12
 
        Text1.AddItem i & " x " & N & " = " & i * N
 
    Next
 
End Sub

Private Sub Command2_Click()
    Text1.Text = ""
End Sub

Private Sub Command3_Click()
    End
End Sub

5.. Por ultimo ejecutamos el programa.

Comentarios

Entradas más populares de este blog

PASOS PARA CREAR UNA CALCULADORA DEL IMC (ÍNDICE DE MASA CORPORAL) DE UNA PERSONA. (SEMANA 28)

Pasos para cambiarle el color de fondo al formulario. (SEMANA 23)