Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How to terminate a form and be able to open it again?

$
0
0

I have a link label with the following code:

Form2.Show()

I have multiple forms in this one project by the way.

Form2 has a button with the command:

Form2.Close()

The button works, but whenever I 'close' the form using that button, the window disappears, but if I go Alt+Tab, Form2 is there! Also, once I 'close' Form2 with that button, I cannot open it again with the linklabel.

So my question is, how can I properly Open and Close a Form?

By the way, this is Visual Basic 2010 I am using.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>