Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

VS 2008 How to hide the main form in other way ?

$
0
0
Hello VBForum !
I just registered and it looks like a very awesome forum :)

I have a very small question, just started with all the Visual Basic business..
To make your life easier, I'll demonstrate it hehe

I made a button in the main form, and 2 textboxes, like that (a simple login screen, which doesn't work yet):



The "Login" button perform this:

Code:

Form2.Show()
Me.Hide()

This is how "Form2" looks like:



The "x" button perform this:

Code:

Form1.Show()
Me.Close()

And then it shows up "Form1" again.. now, for my question:
Is there a way to hide the "Form1" or even close it, in order to show it up like the same way "Form2" do ?

I mean, after you open up "Form2" you only HIDE "Form1", and when you close "Form2" and open it once again, the opening way is different, because it's not only hidden.
I did this before, but I'm not sure how.. and no, I can't do "Form1.close", because it terminates all the debugging.


Lol hope you understand :blush:
Thanks !

Viewing all articles
Browse latest Browse all 42220

Trending Articles



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