1. 1.
    -1
    okulda kod transferi

    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;
    using System. Collections;

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

    private void button1_Click(object sender, EventArgs e)
    {
    Hashtable yas = new Hashtable();
    yas["salih"] = 32;
    yas["abdullah"] = 11;
    yas["hüseyin"] = 25;
    yas["murtaZaa"] = 28;

    yas.Add("first", 4);
    label1.Text = yas. Count.ToString();
    foreach (DictionaryEntry element in yas)
    {
    string ad = (string)element.Key;
    int yasi = (int)element. Value;
    listBox1.Items.Add("Ad" + ad + "Yaşı" + yasi);

    }
    }
    }
    }
    ···
  2. 2.
    +1
    {

    public partial class Form1 : Form

    {

    public Form1()

    {

    InitializeComponent();

    }

    Hashtable htablo = new Hashtable();

    private void ekle_Click(object sender, EventArgs e)

    {

    htablo.Add(textBox1.Text, textBox2.Text);

    }

    private void listboxGoster_Click(object sender, EventArgs e)

    {

    listBox1.Items. Clear();

    foreach (DictionaryEntry i in htablo)

    {

    listBox1.Items.Add("Key: " +i.Key+" value: " +i.Value);

    }

    }

    private void kontrol_Click(object sender, EventArgs e)

    {

    label3.Text = htablo. ContainsKey(textBox3.Text).ToString();

    }

    }

    }
    ···
  3. 3.
    +1
    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;

    using System. Collections;

    namespace sortedlist_sinifi

    {

    public partial class Form1 : Form

    {

    public Form1()

    {

    InitializeComponent();

    }

    SortedList sListe = new SortedList();

    private void sorgula_Click(object sender, EventArgs e)

    {

    textBox2.Text = sListe[textBox1.Text].ToString();

    }

    private void Form1_Load(object sender, EventArgs e)

    {

    sListe.Add("01", "ADANA");

    sListe.Add("02", "ADIYAMAN");

    sListe.Add("03", "AFYON");

    sListe.Add("04", "AĞRI");

    sListe.Add("05", "AMASYA");

    sListe.Add("06", "ANKARA");

    sListe.Add("07", "ANTALYA");

    sListe.Add("08", "ARTViN");

    sListe.Add("09", "AYDIN");

    }

    }

    }
    ···
  4. 4.
    0
    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 WindowsFormsApplication25
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
    listBox1.Items. Clear();
    int[] veri = new int[10];
    Random rnd = new Random();
    foreach (int i in veri)
    {
    veri[i] = rnd. Next(1, 20);
    listBox1.Items.Add(veri[i]);

    }
    }
    }
    }
    ···
  5. 5.
    +1
    sağol mübarek
    ···
  6. 6.
    0
    ···