Windows Application Form
I have a user control called 'ucForm', this 'ucForm' have a button to pop out a windows called 'pForm', I want to code it like this, when I press the 'Next' button it will close the 'pForm' and pass the textbox value in 'pForm' to 'ucForm' textbox. What code should I do in the button_click in 'pForm' and what event and method should used to detect the closing of the 'pForm' and perform passing value. Thanks
Note: I am using .net framework 2.0 and form_closing is oboslete in that.
Source: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.closing.aspx