I am writing a C# application that opens multiple child forms to edit specific records in a database.
When closing a child form, it asks if the user wants to save the data. However, if the main form is closed, all child forms are closed without prompting. It would seem that this would be a simple problem to solve, but I can't seem to figure it out.
I am launching the child windows like this:
private void listResults_DoubleClick(object sender, EventArgs e)
{
// Open the InfoSheet form for the specific record
InfoSheet infoSheet = new InfoSheet(Convert.ToInt32(listResults.Items[listResults.SelectedIndices[0]].Text));
infoSheet.Show();
}
Any suggestions are appreciated!