I have the following situation:
ParentFormwhich opensWelcomeFormwithShowDialog.WelcomeFormcontains a Button which opensNewProjectFormwithShowDialog- When the user hits
OKonNewProjectForm, a new project is created and both forms are closed (good behaviour) - When the user hits
CANCELonNewProjectForm, both forms are closed (understandable behaviour, but not desireable).
I suspect this somehow has something to do with DialogResult (which is actually DialogResult.None on CANCEL and NewProjectForm)
How can I get the above situation without both forms closing?
Edit
Code used to open NewProjectForm:
ProjectNew projectNew = new ProjectNew();
projectNew.StartPosition = FormStartPosition.CenterParent;
projectNew.ShowDialog(this);
Code used to open WelcomeForm:
Welcome welcome = new Welcome();
welcome.StartPosition = FormStartPosition.CenterParent;
welcome.ShowDialog(this);
Note: NewProjectForm is not opened by Welcome but by ParentForm
Edit 2
Strange stuff; I created a new project with the same code/situation, which doesn't reproduce this behaviour...