Public Class Form1 Dim isaret As String Dim sayi1, sayi2, sonuc, modsonuc As Double Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click isaret = "eksi" sayi1 = TextBox1.Text Label1.Text = sayi1 & " - " TextBox1.Text = "" ' butonları gizledik .... Button12.Enabled = True Button13.Enabled = False Button14.Enabled = False Button15.Enabled = False Button16.Enabled = False End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "0" Then TextBox1.Text = "1" Else TextBox1.Text = TextBox1.Text + "1" End If End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click If TextBox1.Text = "0" Then TextBox1.Text = "2" Else TextBox1.Text = TextBox1.Text + "2" End If End Sub Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click If TextBox1.Text = "0" Then TextBox1.Text = "3" Else TextBox1.Text = TextBox1.Text + "3" End If End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If TextBox1.Text = "0" Then TextBox1.Text = "4" Else TextBox1.Text = TextBox1.Text + "4" End If End Sub Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click If TextBox1.Text = "0" Then TextBox1.Text = "5" Else TextBox1.Text = TextBox1.Text + "5" End If End Sub Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click If TextBox1.Text = "0" Then TextBox1.Text = "6" Else TextBox1.Text = TextBox1.Text + "6" End If End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If TextBox1.Text = "0" Then TextBox1.Text = "7" Else TextBox1.Text = TextBox1.Text + "7" End If End Sub Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click If TextBox1.Text = "0" Then TextBox1.Text = "8" Else TextBox1.Text = TextBox1.Text + "8" End If End Sub Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click If TextBox1.Text = "0" Then TextBox1.Text = "9" Else TextBox1.Text = TextBox1.Text + "9" End If End Sub Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click If TextBox1.Text = "0" Then TextBox1.Text = "0" Else TextBox1.Text = TextBox1.Text + "0" End If End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click isaret = "artı" sayi1 = TextBox1.Text Label1.Text = sayi1 & " + " TextBox1.Text = "" ' butonları gizledik .... Button12.Enabled = True Button13.Enabled = False Button14.Enabled = False Button15.Enabled = False Button16.Enabled = False End Sub Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click isaret = "carpma" sayi1 = TextBox1.Text Label1.Text = sayi1 & " * " TextBox1.Text = "" ' butonları gizledik .... Button12.Enabled = True Button13.Enabled = False Button14.Enabled = False Button15.Enabled = False Button16.Enabled = False End Sub Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button16.Click isaret = "bölme" sayi1 = TextBox1.Text Label1.Text = sayi1 & " / " TextBox1.Text = "" ' butonları gizledik .... Button12.Enabled = True Button13.Enabled = False Button14.Enabled = False Button15.Enabled = False Button16.Enabled = False End Sub Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click sayi2 = TextBox1.Text Button12.Enabled = False ' butonları aktif ettik .... Button13.Enabled = True Button14.Enabled = True Button15.Enabled = True Button16.Enabled = True If isaret = "eksi" Then sonuc = sayi1 - sayi2 Label1.Text = sayi1 & " - " & sayi2 & " = " & sonuc TextBox1.Text = "" ElseIf isaret = "artı" Then sonuc = sayi1 + sayi2 Label1.Text = sayi1 & " + " & sayi2 & " = " & sonuc TextBox1.Text = "" ElseIf isaret = "carpma" Then sonuc = sayi1 * sayi2 Label1.Text = sayi1 & " * " & sayi2 & " = " & sonuc TextBox1.Text = "" ElseIf isaret = "bölme" Then sonuc = sayi1 / sayi2 modsonuc = sayi1 Mod sayi2 Label1.Text = sayi1 & " / " & sayi2 & " = " & sonuc & vbNewLine & "kalan: " & modsonuc TextBox1.Text = "" End If End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click isaret = "" Label1.Text = "" Button12.Enabled = True sayi1 = 0 sayi2 = 0 modsonuc = 0 End Sub End Class
Kardeş Sadece Kısyolu Upload Etmişsin qweqweqweqwe
daha acemiyim bu konuları fazla bilmiyorumSadece 4 işlem yapan hesap makinesi mi olur muş
eyweline saglık
şu an elimde sadece visual basic 2010 express var ultimateyi yükleyecem ama internet iki gündür çok yavaşc# Kodlaması ile elimde mevcut istersen verebilirim hem kendini geliştirirsin
kendimi geliştircem ve hile kodlamayada başlayacam şu an çok acemiyimEline Sağlık Yakında Senden Wolftü Bekleriz
eywteşekürler çok yararlı .d
microsoft visual studio 2015'i öğrensen VB.Net'e geri dönmek istemezsin bileşu an elimde sadece visual basic 2010 express var ultimateyi yükleyecem ama internet iki gündür çok yavaş
indirmeyi deniyecemmicrosoft visual studio 2015'i öğrensen VB.Net'e geri dönmek istemezsin bile
yaptıgınız şeyler cok basit şeyler yani paylaşmaya deymeyecek şeyler ona bakarsan bende ekran klavyesi kodladım ve bu kodun mantıgı yani senin yaptıgın hesap makinesinin mantıgı
textbox1.text += button1.text
olarak işleniyor ve toplama işlemide + ya bastıgında sayıyı bir labele çekiyor ve eşittire bastıgında labelden sayıyı cekip + verip sonucu ekrana yansıtıyor yani kısacası basit
AhahhaSadece 4 işlem yapan hesap makinesi mi olur muş
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?