A
Alex
Hello all,
I have a main form(say "form1") .i want to display another form(say
"form2") on occuring of an event (say a button click) and want to hide
it after some time so that it will again displays while occuring of the
same event.I develop it by creating an object of the form2 and
displays it in the event by calling form2.Show() and hide it by calling
form2.Hide().
the problem is that while displaying the form2 the memory usage of my
application increases by a huge amount.it wont decrease during the
hiding of the form2. Then the application eats memory every
times,during the occurnce of the event.
when i tried "form2.WindowState = FormWindowState.Minimized" instead of
hiding it, the memory usage decreases .But my aim is to hide the form
so that it will displays every time the event occurs
please suggest any method for solving this problem.
regards,
Alex
I have a main form(say "form1") .i want to display another form(say
"form2") on occuring of an event (say a button click) and want to hide
it after some time so that it will again displays while occuring of the
same event.I develop it by creating an object of the form2 and
displays it in the event by calling form2.Show() and hide it by calling
form2.Hide().
the problem is that while displaying the form2 the memory usage of my
application increases by a huge amount.it wont decrease during the
hiding of the form2. Then the application eats memory every
times,during the occurnce of the event.
when i tried "form2.WindowState = FormWindowState.Minimized" instead of
hiding it, the memory usage decreases .But my aim is to hide the form
so that it will displays every time the event occurs
please suggest any method for solving this problem.
regards,
Alex