Subform ia unexpectedly closing parent form problem

  • Thread starter Thread starter Stu
  • Start date Start date
S

Stu

Hi,

I'm using the .NET environment, writing in C#. I have a windows form
application which is causing me a headache. I have a main form and also a
subform, when I close the subform, the main form also closes, which
obviously terminates the application.

I've checked my dialog result from the subform and it's all looking fine.
The form was imported from another project with no apparent issues, I'm not
sure if this has any thing to do with it?

Many thanks for your input.

Stuart
 
Fixed it.
The parent dialog result WAS set to cancel. Have now changed to none and the
problem has gone away.
 
Back
Top