private void button5_Click(object sender, EventArgs e) { this.Hide(); AddInfo nextForm = new AddInfo(); nextForm.ShowDialog(); this.Show(); }
private void btnInfo_Click(object sender, EventArgs e) { AddInfo AddInfo = new AddInfo(Convert.ToInt32(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value)); AddInfo.Show(); }