Private Sub Command1_Click()
Label3.Caption = Val(Text1.Text) + Val(Text2.Text)
Label3 = Val(Text1.Text) & "+" & Val(Text2.Text) & "=" & Val(Text1.Text) + Val(Text2.Text)
End Sub

Private Sub Command2_Click()
Label3.Caption = Val(Text1.Text) - Val(Text2.Text)
Label3 = Val(Text1.Text) & "-" & Val(Text2.Text) & "=" & Val(Text1.Text) - Val(Text2.Text)
End Sub

Private Sub Command3_Click()
Label3.Caption = Val(Text1.Text) * Val(Text2.Text)
Label3 = Val(Text1.Text) & "*" & Val(Text2.Text) & "=" & Val(Text1.Text) * Val(Text2.Text)
End Sub

Private Sub Command4_Click()
Label3.Caption = Val(Text1.Text) / Val(Text2.Text)
Label3 = Val(Text1.Text) & "/" & Val(Text2.Text) & "=" & Val(Text1.Text) / Val(Text2.Text)
End Sub
arrow
arrow
    全站熱搜

    nini791213 發表在 痞客邦 留言(0) 人氣()