0

I am currently in the process of changing my modal form to modeless. The modal form was at the beginning of a method and I utilized the values within the form in this method. Now that I'm changing it to modeless, I have it set to open the form, then in the closed event I call that method. But my problem is, how do I retrieve the values from the form? Since it's closed, I can't use the simple form.Value like I was when the dialog was modal.

Thanks so much!

1 Answers1

0

Subscribe to the 'FormClosing' event and save the data from the form.
I'm fairly certain the 'FormClosing' is the event you need because
The form is not yet disposed when you reach this event.

Giora Guttsait
  • 1,279
  • 15
  • 29
  • Do you think you could show me a quick example? Even if the form isn't disposed at this event, how would I get back to my original method then exit out of the form? – Shannon Morris Dec 09 '15 at 21:28