Hi,
i have a form with one button called next .when we click next it will invoke another instance of the same form ,so i want to close the old form before open the new instance of the form. i am unable to acheieve this. any suggestions on this issue will be helpful for me to solve this issue.
following is the code snippet which i used for the testing purpose of the above said scenario.
Regards,
Selva
i have a form with one button called next .when we click next it will invoke another instance of the same form ,so i want to close the old form before open the new instance of the form. i am unable to acheieve this. any suggestions on this issue will be helpful for me to solve this issue.
following is the code snippet which i used for the testing purpose of the above said scenario.
private void ra_Load(object sender, EventArgs e) { List<string> firstname = new List<string>(); firstname.Add("SAM"); firstname.Add("TAYLOR"); firstname.Add("ROSE"); GridViewDataRowInfo row; for (int i = 0; i < firstname.Count; i++) { row = radGridView1.Rows.AddNew(); row.Cells[0].Value = firstname[i]; } } private void btnNext_Click(object sender, EventArgs e) { //this.Close(); ra newra = new ra(); newra.ShowDialog(); }Regards,
Selva