|
-
May 5th, 2013, 03:45 PM
#1
Thread Starter
New Member
How to hide the main form in other way ?
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 
Thanks !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|