Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

My program loads forms into the main form of the application. These forms are loaded from Class Library projects.

 

The forms in the DLL's have text boxes on them so, in the closing event I do a check to see if any values differ from the database and then put up a message box to give the user a chance to save. It works fine when I close the DLL form.

 

Problem I am having is when you close the app using the close icon on the main form, it disregards the DLL forms closing event and closes the whole thing.

 

How can I intercept this? Since I can't set a value back to the main app using a dll (or can I?) without using proper plugin design.

Posted
Can you not use the Closing event of the main form to manual close each child form. Obivously this will only work if you can reference the 'child' forms. Assuming you are creating the 'child' forms from the main form in the first place it should be easy enough to create an array of them.
Anybody looking for a graduate programmer (Midlands, England)?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...