I have one Form, that opens another one. The user writes some information here. When closing this second Form, on the first one, I need to use the previously added information.
(The added information is a string- an email address, and I would add it to listbox items in the first Form.)
I tried Close(), or Hide(). But no matter what was the order I got problems with the new Form closing when it opened, or it didn’t open at all.
You could a string property to the form that will contain the value. It will simply expose the value of the private email field.
For example:
and then from some outside form you could show the form and read the value that was entered into the Email field once the form is closed: