Subform ia unexpectedly closing parent form problem

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
 
S

Stu

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top