private void button1_Click(object sender, EventArgs e) { addstudent f = new addstudent(); this.Hide(); f.Show(); }
private void create_Click(object sender, EventArgs e) { addstudent s = new addstudent(); this.Hide(); s.Show(); }
private void updatestu_Click(object sender, EventArgs e) { if (dataGridstudent.SelectedCells.Count != 0) { int rw = dataGridstudent.SelectedCells[0].RowIndex; int id = (int)dataGridstudent.Rows[rw].Cells["Id"].Value; addstudent se = new addstudent(id); this.Hide(); se.Show(); } }