kadirselen
Mesaj Sayısı : 550 Kayıt tarihi : 15/08/10 Yaş : 34 Nerden : Denizli Cinsiyet :
| Konu: Vısual Studio 2005 İle Hesap Makinası Yapma Salı Ağus. 17, 2010 1:02 pm | |
|
FORMUMUZA 17 BUTTON Bİr tane Textbox Koyuyoruz...
- Kod:
-
Public Class Form1 Dim a As Integer Dim b As String
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click a = TextBox1.Text b = "topla" TextBox1.Text = ""
End Sub
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click a = TextBox1.Text b = "çıkart" TextBox1.Text = ""
End Sub
Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click a = TextBox1.Text b = "çarp" TextBox1.Text = ""
End Sub
Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button16.Click a = TextBox1.Text b = "böl" TextBox1.Text = ""
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = TextBox1.Text & "1"
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox1.Text = TextBox1.Text & "2"
End Sub
Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click TextBox1.Text = " " TextBox1.Text = " "
End Sub
Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click If b = "topla" Then TextBox1.Text = a + TextBox1.Text ElseIf b = "çarp" Then TextBox1.Text = a * TextBox1.Text ElseIf b = "çıkart" Then TextBox1.Text = a - TextBox1.Text ElseIf b = "böl" Then TextBox1.Text = a / TextBox1.Text ElseIf b = "yüzde" Then TextBox1.Text = a * TextBox1.Text / 100 ElseIf TextBox1.Text = "" Then MsgBox("lütfen rakam giriniz") End If
End Sub
Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button17.Click Close() End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click TextBox1.Text = TextBox1.Text & "3" End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click TextBox1.Text = TextBox1.Text & "4" End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click TextBox1.Text = TextBox1.Text & "5" End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click TextBox1.Text = TextBox1.Text & "6" End Sub
Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click TextBox1.Text = TextBox1.Text & "7" End Sub
Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click TextBox1.Text = TextBox1.Text & "8" End Sub
Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click TextBox1.Text = TextBox1.Text & "9" End Sub
Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click TextBox1.Text = TextBox1.Text & "0" End Sub
Private Sub Button17_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button17.MouseLeave BackColor = Color.Gold
End Sub
Private Sub Button17_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button17.MouseMove BackColor = Color.Red End Sub
Private Sub Button4_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button4.MouseUp BackColor = Color.Gold
End Sub
Private Sub Form1_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.MouseHover
End Sub
Private Sub Button18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button18.Click a = TextBox1.Text b = "yüzde" TextBox1.Text = "" End Sub End Class |KADİR SELEN - HAKAN ŞEN | | |
|
★ÅDMÌN★
Mesaj Sayısı : 702 Kayıt tarihi : 14/08/10 Yaş : 33 Nerden : İzmir Cinsiyet :
| Konu: Geri: Vısual Studio 2005 İle Hesap Makinası Yapma Salı Ağus. 17, 2010 1:04 pm | |
| Ellerine Sağlık Güzel Paylaşım | |
|
kadirselen
Mesaj Sayısı : 550 Kayıt tarihi : 15/08/10 Yaş : 34 Nerden : Denizli Cinsiyet :
| Konu: Geri: Vısual Studio 2005 İle Hesap Makinası Yapma Salı Ağus. 17, 2010 1:06 pm | |
| Sagol PAtron | |
|