By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,463 Members | 3,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,463 IT Pros & Developers. It's quick & easy.

newbee question

P: n/a
Hi,

I have a real beginner question for u....
what i want to do is close a form when a new one opens.
At present when i run my application and arrive at the
main form, i press a button to display a second form, but
the 1st form is still in the background.

I tried to use me.close but this ends the whole
application. what am i doin wrong?
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Alexia,

Call Hide() before showing new form.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"Alexia" <s@di> wrote in message
news:03****************************@phx.gbl...
Hi,

I have a real beginner question for u....
what i want to do is close a form when a new one opens.
At present when i run my application and arrive at the
main form, i press a button to display a second form, but
the 1st form is still in the background.

I tried to use me.close but this ends the whole
application. what am i doin wrong?

Jul 21 '05 #2

P: n/a
Hi,

thx for your help Miha. Just to confirm, do i write..

me.hide()
dim frm1 as new FORM1
frm1.show

Will this unload the form?
i.e if i close form2 after i hide form1 will the
application close?

-----Original Message-----
Hi Alexia,

Call Hide() before showing new form.

--
Miha Markic - RightHand .NET consulting & software developmentmiha at rthand com

"Alexia" <s@di> wrote in message
news:03****************************@phx.gbl...
Hi,

I have a real beginner question for u....
what i want to do is close a form when a new one opens.
At present when i run my application and arrive at the
main form, i press a button to display a second form, but the 1st form is still in the background.

I tried to use me.close but this ends the whole
application. what am i doin wrong?

.

Jul 21 '05 #3

P: n/a
Hi,

"Alexia" <an*******@discussions.microsoft.com> wrote in message
news:bf****************************@phx.gbl...
Hi,

thx for your help Miha. Just to confirm, do i write..

me.hide()
dim frm1 as new FORM1
frm1.show

Will this unload the form?
i.e if i close form2 after i hide form1 will the
application close?


No. It depends on Form1.
You'll have to close it.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.