1. 1.
    +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();

    }

    }

    }
    ···
   tümünü göster