On the Form_Closing I intend to just hide the form but somehow I need to reload/refresh the form as when it was just loaded the first time, could I just call its Load event to achieve it?
TIA
Printable View
On the Form_Closing I intend to just hide the form but somehow I need to reload/refresh the form as when it was just loaded the first time, could I just call its Load event to achieve it?
TIA
It's possible that you could add a NEW sub on the form where you pass an object into that will contain the values that were initially passed into the previous form.
I beg your pardon, I did not understand it, could you elaborate?
Basically, you instantiate a new form, but pass an object containing the the initial stuff from the previous form into the NEW sub.
Just handle the VisibleChanged event and load your data there. That will load the data each time the the form is shown. Obviously you'll need an If statement so that it doesn't get loaded when the form is hdden too.