I have a question regarding the best way to get rid of a used form. For example, I start my program with a menu form. As of right now, when they click a button, I Hide() the form, create a new instance of the form that will be shown, and Show() the new form. This is done for each form in my app.
The more I think about it, the more I don't think this is the best option. Even if you hide a form, it still resides in memory until the application closes, correct? My question, then, is what is the best practice for moving from form-to-form?
Horribly newbie question, I apologize. I just don't want to inadvertently write a memory hogger that slows the machine it's running on to a stand-still.
Thanks,
Brad
The more I think about it, the more I don't think this is the best option. Even if you hide a form, it still resides in memory until the application closes, correct? My question, then, is what is the best practice for moving from form-to-form?
Horribly newbie question, I apologize. I just don't want to inadvertently write a memory hogger that slows the machine it's running on to a stand-still.
Thanks,
Brad