[HELP] Extreme noob question.

Posts 1–15 of 16 · Page 1 of 2
[HELP] Extreme noob question.
Hello all,
I have a problem..
I know this is probably a extremely retarded question..
but. I need a button to open another form.
For example.
---------------------------------------------------
i need a button on Form1
to open Form2
Im sorry for my extreme noobishness.
Quote Originally Posted by Lonely Tedy Bear View Post
form2.show
That worked thanks, but is it possible that as Form2 is opened..Form1 is closed?
form1.close or form1.hide
When i do
Form1.close
The whole thing closes ;/ ??
When FORM2 opens
I want FORM1 to close.

So just FORM2 will be showing. Instead of Both of them Closing.
And when i put in Form1.hide
Both FORM1 and FORM2 close. or (hide)
Grrr Newbs! Form2.Show Me.Hide (in that order)
Quote Originally Posted by NextGen1 View Post
Grrr Newbs! Form2.Show Me.Hide (in that order)
ok.. you just re-posted what i posted and it isn't nice to call pepole newbs you where once a noob everyone was, These little things where once confusing to us
@ Lonely , I was talking about you , and the indicates ...a joke... Anyone proficient in vb.net will know what is actually happening here. Form1 has code that says form1.hide() , anyone new to vb.net will have both forms close on them and may not understand why if they are new to developing in visual basic, wanna know why? You are the self proclaimed super vb hacker...? Well, I will explain it to you. What is actually happening is either his compiled application is closing (crashing) or his test/debug is "breaking" , this happens because form1 can not refer to itself as form1 anymore, the active form should be referred to as
Code:
me
they do not (cannot) refer to themselves through their default instance - using the identifiers given to them ...IE
Code:
form1.close
will not close form1 if the code is in form1 it should be
Code:
 me.close
That my friend is extreme basic visual basic .net development. So , I called you a newb. and even though the meaning was intentional, I was not trying to be harsh, hense the , I would never call a new member a newb, i admire anyone trying to learn a language. Only someone who is cocky and proclaims they are great coders and hackers but miss something as small as that. And with all that said, My suggestion isn't even close to yours, yours is just plain wrong.
Thanks for the help people.
Sorry;(
No need to be sorry, Despite out antics sometimes, we actually enjoy helping eachother Did it work for you?
its working..
im retarded ;(!
it works thanks!!
Not a problem, your not retarded, just learning. Was it the me.hide is > form1.hide issue?
No, i had it as

----------------
Form2.Show Me.Hide
----------------
Instead of

----------------------
Form2.Show
Me.Hide
----------------------
Quote Originally Posted by SweetLEMONADE View Post
No, i had it as

----------------
Form2.Show Me.Hide
----------------
Instead of

----------------------
Form2.Show
Me.Hide
----------------------
Sorry, another thing I thought I should contribute is that if you really want to close form1, and not just hide it, you'll need to go into Project Properties and go to the "Application" tab, from there just scroll down a little until you see "Shutdown when" And pick "Last form closes" instead of "When startup form closes". That way if you close form1 by accident but still want to use form2, it won't just close the whole app.
Posts 1–15 of 16 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us