Hesap Makinesi By: By.TuRuT Date: August 11, 2009, 01:53:58 AM
Private Sub Command1_Click()
Label4.Caption = "+" 'Labelin ismini değiştiriyoruz'
Text3.Text = Val(Text1) + Val(Text2) 'İşlemi yaptırıyoruz'
End Sub
Private Sub Command2_Click()
Label4.Caption = "-" 'Labelin ismini değiştiriyoruz'
Text3.Text = Val(Text1) - Val(Text2) 'İşlemi yaptırıyoruz'
End Sub
Private Sub Command3_Click()
Label4.Caption = "*" 'Labelin ismini değiştiriyoruz'
Text3.Text = Val(Text1) * Val(Text2) 'İşlemi yaptırıyoruz'
End Sub
Private Sub Command4_Click()
If Val(Text2) = 0 Then 'Burada text2 kontrol ediliyor eğer 0 ise hata mesajı veriyor değilse işlemi yapıyor'
MsgBox "Veri Hatası", , "Sıfıra Bölünme Hatası"
Else
Label4.Caption = "/" 'Labelin ismini değiştiriyoruz'
Text3.Text = Val(Text1) / Val(Text2) 'İşlemi yaptırıyoruz'
End If
End Sub
Private Sub Command5_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Label4.Caption = ""
End Sub
Ynt: Hesap Makinesi By: melek_03 Date: May 04, 2010, 01:51:56 PM
Paylaşım için teşekkür ettim..
Ynt: Hesap Makinesi By: TwiLight Date: May 04, 2010, 01:52:08 PM
Teşekkürler
Ynt: Hesap Makinesi By: games21 Date: May 13, 2010, 09:50:06 AM
teşekkür ettim eline emeğine sağlık