private void button1_Click_1(object sender, EventArgs e)
        {
            kayit_ekle frm = new kayit_ekle();

            frm.Show();
            this.Hide();
        }
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (sayac >= 1)
     {
         ucusno        = Convert.ToInt32(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["ucus_no"].Value);
         kayitGüncelle = 1;
         baglan.Close();
         baglan.Open();
         sorgu.Connection  = baglan;
         sorgu.CommandText = "select * from tablo where ucus_no='" + ucusno + "'";
         dr = sorgu.ExecuteReader();
         dr.Read();
         ucusno = int.Parse(dr[0].ToString());
         kayit_ekle frm = new kayit_ekle();
         this.Hide();
         frm.Show();
     }
 }