With WinForms, which method is more efficient, close and reload or hide/show?
When working with Windows forms in C#, is it safer/more beneficial
resource-wise to completely close the form each time and reload the
data when you need the form again, as opposed to just hiding the form
and keeping it all in memory?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Stefan138 reputationPosted Mar 19, 2009, 1:40 PM EDT
Try it out.
Start your app and open task manager. Watch your memory usage. Now hide a form and notice the memory usage again.
Now do the same thing, but close the form instead.
Mahesh ChandRank #1 · 393.3K reputationPosted Mar 19, 2009, 3:42 PM EDT
Jan MontanoRank #1,295 · 1.3K reputationPosted Mar 19, 2009, 5:26 PM EDT
With the hardware these days, loading times for winapp forms are really fast. And think for example if you have 100 forms, it will really be troublesome if all those forms were only hidden and not closed. It will really eat up a lot.
Just my two cents.