M
mark_t1980
Hi guys,
This is probably a really simple silly question, but I can't seem to
find a way round it.
I want to display a separate form when I click on a link label on my
main form. I've managed that, but it displays a second form when you
click again because the click event is creating a new instance of the
form each time. How do I go about creating one instance of the form
and displaying it with the click event? This needs to work again
after the form has been closed. The GC seems to dispose of the form
after you close it so calling show() again is obviously a bad idea.
Is there a way of using the visible property when you click on X to
hide the form rather than disposing of it or are there better
ways...I expect there are...please enlighten me. I feel stupid!
This is probably a really simple silly question, but I can't seem to
find a way round it.
I want to display a separate form when I click on a link label on my
main form. I've managed that, but it displays a second form when you
click again because the click event is creating a new instance of the
form each time. How do I go about creating one instance of the form
and displaying it with the click event? This needs to work again
after the form has been closed. The GC seems to dispose of the form
after you close it so calling show() again is obviously a bad idea.
Is there a way of using the visible property when you click on X to
hide the form rather than disposing of it or are there better
ways...I expect there are...please enlighten me. I feel stupid!