• Giriş

Gorsel Programlama

  • AnaSayfa
  • Hakkımızda
  • TOP-10 Proje
  • Download
  • Özel Ders
  • Reklam Verin
  • Destek
  • İletişim
RSS feed
  • Youdao
  • Xian Guo
  • Zhua Xia
  • Google
  • My Yahoo!
  • newsgator
  • Bloglines
  • iNezha
© 2009-2024 Gorsel Programlama

Dizilerle öğrenci kayıt örneği C# Windows Form Application

Dizilerle öğrenci kayıt örneği C# Windows Form Application

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

namespace WindowsFormsApplication10
{
 public partial class Form1 : Form
 {
 int a=0;
 int sayac = 0;
 int i = 0;
 public string[] adsoyad = new string[100];
 public string[] sınıf = new string[100];
 public string[] tckimlik = new string[100];
 public string[] memleket = new string[100];
 public string[] cinsiyet = new string[100];
 public string[] doğumtarihi = new string[100];

 public Form1()
 {
 InitializeComponent();
 }
 private void button1_Click(object sender, EventArgs e)
 {
 adsoyad[i] = textBox1.Text;
 sınıf[i] = comboBox1.SelectedItem.ToString();
 tckimlik[i] = textBox3.Text;
 memleket[i] = comboBox2.SelectedItem.ToString();
 if (checkBox1.Checked == true) cinsiyet[i] = checkBox1.Text;
 else cinsiyet[i] = checkBox2.Text;
 doğumtarihi[i] = dateTimePicker1.Text;
 MessageBox.Show("Kaydınız Başarıyla Alındı");
 i = i + 1;
 sayac = sayac + 1;
 }

 private void Form1_Load(object sender, EventArgs e)
 {
 comboBox1.Text = "Sınıfı Seçiniz";
 comboBox1.Items.Add("9/A");
 comboBox1.Items.Add("9/B");
 comboBox1.Items.Add("9/C");
 comboBox1.Items.Add("9/D");
 comboBox1.Items.Add("9/E");
 comboBox1.Items.Add("10/A");
 comboBox1.Items.Add("10/B");
 comboBox1.Items.Add("10/C");
 comboBox1.Items.Add("10/D");
 comboBox1.Items.Add("11/A");
 comboBox1.Items.Add("11/B");
 comboBox1.Items.Add("11/L");
 comboBox1.Items.Add("11/T");

 comboBox2.Text = "İli Seçiniz";
 comboBox2.Items.Add("Adana");
 comboBox2.Items.Add("Ankara");
 comboBox2.Items.Add("Antalya");
 comboBox2.Items.Add("Artvin");
 comboBox2.Items.Add("Ağrı");
 comboBox2.Items.Add("Adıyaman");
 comboBox2.Items.Add("Ardahan");
 comboBox2.Items.Add("Bilecik");
 comboBox2.Items.Add("Samsun");
 comboBox2.Items.Add("Bursa");
 comboBox2.Items.Add("Tokat");
 comboBox2.Items.Add("Edirne");
 comboBox2.Items.Add("Denizli");
 comboBox2.Items.Add("Muğla");
 comboBox2.Items.Add("Kocaeli");
 comboBox2.Items.Add("Çanakkale");
 comboBox2.Items.Add("Kıklareli");
 comboBox2.Items.Add("Bayburt");
 comboBox2.Items.Add("Mersin");
 comboBox2.Items.Add("Kütahya");

 }

 private void button2_Click(object sender, EventArgs e)
 {

 label7.Text = "Ad Soyad :" + adsoyad[a];
 label8.Text = "Sınıf :" + sınıf[a];
 label9.Text = "T.C. Kimlik No :" + tckimlik[a];
 label10.Text = "Memleket :" + memleket[a];
 label11.Text = "Cinsiyet :" + cinsiyet[a];
 label12.Text = "Doğum Tarihi :" + doğumtarihi[a];

 }

 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
 if (checkBox1.Checked == true) checkBox2.Enabled = false;
 else checkBox2.Enabled = true;
 }

 private void checkBox2_CheckedChanged(object sender, EventArgs e)
 {
 if (checkBox2.Checked == true) checkBox1.Enabled = false;
 else checkBox1.Enabled = true;

 }

 private void button3_Click(object sender, EventArgs e)
 {
 textBox1.Text = "";
 textBox3.Text = "";
 if (checkBox1.Checked == true || checkBox2.Checked == true) { checkBox1.Checked = false; checkBox2.Checked = false; checkBox2.Enabled = true; }
 else { checkBox1.Enabled = true; checkBox2.Checked = false; }

 }
 private void button5_Click(object sender, EventArgs e)
 {

 a = a + 1;
 label7.Text = "Ad Soyad :" + adsoyad[a];
 label8.Text = "Sınıf :" + sınıf[a];
 label9.Text = "T.C. Kimlik No :" + tckimlik[a];
 label10.Text = "Memleket :" + memleket[a];
 label11.Text = "Cinsiyet :" + cinsiyet[a];
 label12.Text = "Doğum Tarihi :" + doğumtarihi[a];
 }

 private void button4_Click(object sender, EventArgs e)
 {
 a = a - 1;
 label7.Text = "Ad Soyad :" + adsoyad[a];
 label8.Text = "Sınıf :" + sınıf[a];
 label9.Text = "T.C. Kimlik No :" + tckimlik[a];
 label10.Text = "Memleket :" + memleket[a];
 label11.Text = "Cinsiyet :" + cinsiyet[a];
 label12.Text = "Doğum Tarihi :" + doğumtarihi[a];

 }
 }
}

Paylaş :
Tweet
Yorum Yazın | Geri
1 Haziran Cuma,2012 Tarihinde Yayınlanmıştır. Bulunduğu Kategori : C#
Etiket: Öğrenci kayıt örneği C# Windows Form Application
« Alan,çevre hesaplama C# Windows Form Application Enum yapısı örnek C# Windows Form Application »
  1. smhsari
    Cevap | Gönder
    Ara 12th, 2012 at 16:32 | #1

    teskrler

  2. berna
    Cevap | Gönder
    Ara 18th, 2012 at 03:34 | #2

    Ya ben çalıştıramadım lütfen bana yardım edebilirmisiniz bana uygulamasınıda exe dosyasınıda atabilirmisiniz ne olur yardım edin

  3. admin
    Cevap | Gönder
    Ara 18th, 2012 at 15:18 | #3

    Projenin bin –>Debug klasöründe exe dosyası var.

  4. yasin
    Cevap | Gönder
    Ara 18th, 2012 at 21:48 | #4

    hocam indirme linki yok mu _?

  5. admin
    Cevap | Gönder
    Ara 19th, 2012 at 00:25 | #5

    yasin : Kodlardan oluşturabilirsiniz projeyi.

  6. Selçuk
    Cevap | Gönder
    Tem 9th, 2013 at 10:30 | #6

    Selam,

    105. satır kod eksik kalmış olabilir mi ?

    if (checkBox1.Checked == true || checkBox2.Checked == true) { checkBox1.Checked

  7. admin
    Cevap | Gönder
    Ağu 12th, 2013 at 09:36 | #7

    Selçuk:
    Aslında eksi değil.Sağa doğru kaydığı için gözükmüyor.Seçme işlemi yaparak kopyaladğınız zaman ekrana geliyor.Kodlar aşağıda.
    if (checkBox1.Checked == true || checkBox2.Checked == true) { checkBox1.Checked = false; checkBox2.Checked = false; checkBox2.Enabled = true; }
    else { checkBox1.Enabled = true; checkBox2.Checked = false; }

  8. sude
    Cevap | Gönder
    Şub 16th, 2023 at 13:48 | #8

    ben yaptım kodlarda çalışıyor sadece yazmıyor neden acaba yardım ederseniz çok sevinirim

  9. sude
    Cevap | Gönder
    Şub 17th, 2023 at 15:27 | #9

    lütfen cevap veririmsiniz

Yorum Yazın ...

Cevabı İptal
XHTML: Bu Etiketleri Kullanabilirsiniz : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
RSS Bu Yazıya Yapılan Yorumlar


Site içi Arama

Takip et: @GorselProgram







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

Son Yazılar

  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 2.dönem 2. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 2.dönem 1. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 1.dönem 2. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 1.dönem 1. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı bilgisayar tasarım uygulamaları dersi 1.dönem 1.sınav soruları ve cevap anahtarı

Etiket Bulutu

.NET Application basit C# C#.NET application C#.NET codes C#.NET examples C#.NET lessons C#.NET practice C#.net örnekleri c# console dersleri c# console örnekleri C# ders c# dersleri c# örnek c# örnekleri C.net dersleri c dersleri code console console örnekleri Csharp csharp dersleri csharp net csharp örnekleri c örnekleri download Flash örnekleri forms Forms örnekleri full indir kod kodlar nesne tabanlı programlama OleDbConnection OleDbDataAdapter tam sürüm uygulama vb net win windows windows forms application örnek ücretsiz

Kategoriler

  • Access (59)
  • Akış Diyagramı Flowchart (69)
  • Android Eğitimleri (2)
  • Asp Net (47)
  • C# (834)
  • C# Console (222)
  • Css (19)
  • Dersler (191)
  • Dökümanlar (21)
  • Dreamweaver (12)
  • Excel (8)
  • Fireworks (28)
  • Flash (77)
  • Görsel Programlama (421)
  • GorselProgramlama.Com (8)
  • Html (35)
  • Pascal (2)
  • Photoshop (5)
  • PHP (2)
  • Planlar (114)
  • Programlama Tanım (4)
  • Sınavlar (147)
  • Sql (10)
  • VB 6.0 (45)
  • VB.NET (219)
  • Videolar (65)
  • Word (7)

Arşiv

Bağlantılar

  • Html Dersleri
  • Muslu.NET
  • Programlama Dersleri

Kimler Sitede ?


    Computers Blogs Top programming blogs

   sayaç Powered by WordPress | Theme by NeoEase | Valid XHTML 1.1 and CSS 3 Yukarı