Gerekenler;
4 adet command,2 adet text, 1 adet label
Kod:
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 Private Sub Form_Load() Command1.Caption = "+" Command2.Caption = "-" Command3.Caption = "*" Command4.Caption = "/" End Sub
0 yorum:
Yorum Gönder