You are on page 1of 3

VERSION 5.00 Begin VB.

Form Form1 BackColor = &H80000003& Caption = "Form1" ClientHeight = 5385 ClientLeft = 60 ClientTop = 420 ClientWidth = 10095 LinkTopic = "Form1" ScaleHeight = 5385 ScaleWidth = 10095 StartUpPosition = 3 'Windows Default Begin VB.CommandButton Command6 Caption = "Salir" Height = 735 Left = 7560 TabIndex = 11 Top = 4080 Width = 1575 End Begin VB.CommandButton Command5 Caption = "Limpiar Numero" Height = 735 Left = 4920 TabIndex = 10 Top = 4080 Width = 1575 End Begin VB.CommandButton Command4 Caption = "/" Height = 855 Left = 2640 TabIndex = 9 Top = 3480 Width = 975 End Begin VB.CommandButton Command3 Caption = "*" Height = 855 Left = 480 TabIndex = 8 Top = 3480 Width = 975 End Begin VB.CommandButton Command2 Caption = "-" Height = 855 Left = 2640 TabIndex = 7 Top = 2040 Width = 975 End Begin VB.CommandButton Command1 Caption = "+" Height = 855 Left = 480 TabIndex = 6 Top = 2040 Width = 975 End

Begin VB.TextBox Text3 Height = Left = TabIndex = Text = Top = Width = End Begin VB.TextBox Text2 Height = Left = TabIndex = Text = Top = Width = End Begin VB.TextBox Text1 Height = Left = TabIndex = Text = Top = Width = End Begin VB.Label Label3 Caption = Height = Left = TabIndex = Top = Width = End Begin VB.Label Label2 Caption = Height = Left = TabIndex = Top = Width = End Begin VB.Label Label1 Caption = Height = Left = TabIndex = Top = Width = End

735 8040 5 "Text3" 1920 1575 735 8040 4 "Text2" 480 1575 735 3240 3 "Text1" 480 1575 "Resultado" 735 5400 2 1920 1575 "Numero:2" 735 5400 1 480 1575 "Numero:1" 735 720 0 480 1575

End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() Text3.Text = Val(Text1.Text) + Val(Text2.Text) End Sub Private Sub Command2_Click() Text3.Text = Val(Text1.Text) - Val(Text2.Text)

End Sub Private Sub Command3_Click() Text3.Text = Val(Text1.Text) * Val(Text2.Text) End Sub Private Sub Command4_Click() Text3.Text = Val(Text1.Text) / Val(Text2.Text) End Sub Private Sub Command5_Click() Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub Private Sub Command6_Click() End End Sub Private Sub Label1_Click() Text1.Text = "" End Sub Private Sub Label2_Click() Text2.Text = "" End Sub Private Sub Text3_Change() Text3.Text = "" End Sub

You might also like