Gorsel Programlama | Görsel Programlama | C#.Net | VB.Net | C# Console

ana sayfa > C#, Görsel Programlama > Personel Kaydı ve Maaş Hesaplama C#

Personel Kaydı ve Maaş Hesaplama C#

Çarşamba, 20 Oca 2010 yorum ekle yorumlara git

Personel Kaydı ve Maaş Hesaplama C#personel




 public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            listBox1.Items.Add(textBox1.Text.PadRight(15, ' ') + textBox2.Text.PadRight(15, ' ') + textBox3.Text.PadRight(15, ' ') + textBox4.Text.PadRight(15, ' '));
            listBox1.Font = new Font("Courier New", 10, FontStyle.Regular);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            listBox1.Items.Remove(listBox1.Text);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            string ad;
            string[] str;
            ad = textBox1.Text;
            str = ad.Split(' ');

            if (str.Length == 1)
                MessageBox.Show("Lütfen Soyadı Giriniz");
            else
                textBox1.Text = str[0] + " " + str[1].ToUpper();
        }

        private void button5_Click(object sender, EventArgs e)
        {
            string b;
            b = textBox2.Text;
            textBox2.Text = b.ToUpper(); //metni büyütüyor
        }

        private void button6_Click(object sender, EventArgs e)
        {
            int gun, yev, mas;
            gun = Convert.ToInt32(textBox5.Text);
            yev = Convert.ToInt32(textBox6.Text);
            mas = gun * yev;
            MessageBox.Show(" Maaşınız " + mas + " TL");
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            label5.Text = string.Format("Bugün  Ayın {0:f}", DateTime.Now);
        }

        private void textBox3_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((char.IsDigit(e.KeyChar) == false) && (e.KeyChar != (char)08))
                e.Handled = true;
        }

        private void textBox6_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((char.IsDigit(e.KeyChar) == false) && (e.KeyChar != (char)08))
                e.Handled = true;
        }
    }

Projeyi İNDİR








Rica: Sitemizin Google'da Ön Sıralarda Çıkması İçin Lütfen Alttaki Google+ Butonuna Tıklayınız , Sayfamızı Facebookta Beğeniniz veya yazıları Twitter,Facebookta paylaşınız.
Paylaş :



Böyle bir web sayfam olsun diyorsanız iletişim bölümünden veya gorselprogram@gmail.com mail adresinden bize ulaşabilirsiniz.


Tüm cep telefonu aksesuar fırsatları için tıklayın !

  1. şimdilik yorum yok.
  1. şimdilik geri bağlantı yok