try
{
oleConn.Open();
string sql = "delete * from StudentInfo where StudentNumber='"+full.id+"'";
OleDbCommand cmd = new OleDbCommand(sql, oleConn);
cmd.ExecuteNonQuery();
MessageBox.Show("数据删除成功");
Fm_学员删除 Child = new Fm_学员删除();
Child.FormClosed += new FormClosedEventHandler(Child_FormClosed);
Child.Show();
}
catch (Exception ex)
{
MessageBox.Show("您的错误信息是:"+ex.Message);
}
finally
{
oleConn.Close();
}
}
void Child_FormClosed(object sender, FormClosedEventArgs e)
{
this.Close();
}
具体怎么加```我刚学这个``