private void button5_Click(object sender, EventArgs e)
        {
            this.Hide();
            menu ad = new menu();

            ad.Show();
        }
        private void button1_Click(object sender, EventArgs e)

        {
            string query = "select count(*) from login where kullanci_kodu='" + textBox1.Text + "' and sifre='" + textBox2.Text + "'";

            if (Data(query).Rows[0][0].ToString() == "1")
            {//what i changed today
                id = textBox1.Text;
                adminf.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("şifre ya da kullanci adi yanliş!");
            }
        }