Question Reloading a Form?

RyanHecht

New member
Joined
Sep 26, 2012
Messages
4
Location
Mt. Sinai, NY
Programming Experience
1-3
So I have a project with multiple forms, and I need a way to reload the form to its original state, without manually resetting all variables, properties, etc. So no, form.hide/form.show would not work for this purpose. Sadly, form.restart() does not exist the same way it does for the application, and I need only the form reloaded. I can't seem to find a way to do this, and I wouldn't believe it if no easy way to do this existed. Please help!

thanks,
Ryan
 
Hi,

You can use the .Dispose method of the form to release all the resources in the form. This will then also close the form ready for a clean reload of the form.

Hope this helps.

Cheers,

Ian
 
Back
Top