Mga Pahina

Biyernes, Pebrero 1, 2013

vbcalculator





Private Sub Command1_Click()
Label1.Caption = Val(Text1.Text) + Val(Text2.Text)
End Sub

Private Sub Command2_Click()
Label1.Caption = Val(Text1.Text) * Val(Text2.Text)
End Sub

Private Sub Command3_Click()
Label1.Caption = Val(Text1.Text) - Val(Text2.Text)
End Sub

Private Sub Command4_Click()
Label1.Caption = Val(Text1.Text) / Val(Text2.Text)
End Sub

Walang komento:

Mag-post ng isang Komento