C# Dört işlemi Yapan ,Hesap Makinesi

25. April 2009

Read this article in your language IT | EN | DE | ES

 

 

Proje Kodu Veriyorum  İçinde Veriyorum 

Download 

rar  şifresi :

www.egeonline.com

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace HesapMakinesi
{
    public partial class frmHesapMakinasi : Form
    {

        double sayi1, sayi2;
        double sonuc;

        public frmHesapMakinasi()
        {
            InitializeComponent();



        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void btntopla_Click(object sender, EventArgs e)
        {
            sayi1 = Convert.ToInt32(txtsayi1.Text);
            sayi2 = Convert.ToInt32(txtsayi2.Text);

            sonuc = sayi1 + sayi2;

            lblSonuc.Text = sonuc.ToString();

        }

        private void btncikar_Click(object sender, EventArgs e)
        {
            sayi1 = Convert.ToInt32(txtsayi1.Text);

            sayi2 = Convert.ToInt32(txtsayi2.Text);

            sonuc = sayi1 - sayi2;

            lblSonuc.Text = sonuc.ToString();



        }

        private void btncarp_Click(object sender, EventArgs e)
        {
            sayi1 = Convert.ToInt32(txtsayi1.Text);

            sayi2 = Convert.ToInt32(txtsayi2.Text);

            sonuc = sayi1 * sayi2;
            lblSonuc.Text = sonuc.ToString();
        }

        private void btnböl_Click(object sender, EventArgs e)
        {
            sayi1 = Convert.ToInt32(txtsayi1.Text);
            sayi2 = Convert.ToInt32(txtsayi2.Text);
            sonuc = sayi1 / sayi2;
           
            lblSonuc.Text = sonuc.ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            sayi1 = Convert.ToInt32(txtsayi1.TabIndex);

            sayi2 = Convert.ToInt32(txtsayi2.Text);

            sonuc = sayi1 % sayi2;

            lblSonuc.Text = sonuc.ToString();
        }
    }
}

 

FacebookDigg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

C# ,

Comments

5/17/2010 12:32:09 AM #
I don't like your template but your posts are quite good so I will check back!

Add comment


(Will show your Gravatar icon)

biuquote
  • Comment
  • Preview
Loading



Sayfa 0.03125 saniyede yuklendi.