private void btnbaru_Click(object sender, EventArgs e) { this.Hide(); databuku db = new databuku(); if (db.ShowDialog() == DialogResult.OK) { db.ShowDialog(); } }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { this.Hide(); int idbuku = Convert.ToInt32(dataGridView1.CurrentRow.Cells[1].Value); databuku db = new databuku(idbuku); db.ShowDialog(); }