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

Closing form...

P: n/a
I have two forms and that forms are connect with one button. When I click on
Button in the first form, the second form will be open. But both form are
open. I want when I click on the button to close first form and to open the
second but I don't know how. If someone can help me I will be very
grateful.

Mihailo
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Mihailo,

Did you know that using two panels (docked on a form) that you hide and show
is much easier to use?

Cor
Nov 21 '05 #2

P: n/a
"Mihailo" <al*******@yahoo.com> schrieb:
I have two forms and that forms are connect with one button. When I click
on
Button in the first form, the second form will be open. But both form are
open. I want when I click on the button to close first form and to open
the
second but I don't know how.


<URL:http://groups.google.de/groups?selm=%23D2PicRFFHA.2876%40TK2MSFTNGP12.phx. gbl>

Please avoid multiposts...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a

Thanks it work with two forms. Now I want to open the third form and: I
click on the first form to open 3th form then it will open (logon form) with
password and username. I want when I type username and password and click on
OK to show 3th form but to close FIRST and LOGON form. I know, now, (thanks
to you) how to close logon form but it always stay open 1st form. How can I
do that? I experiment a little but it didn't work.
Thanks a lot for preview help!


Nov 21 '05 #4

P: n/a
Mihailo,

When you use in the "load event" of your first form (that is than not yet
showed)

\\\
dim frm as new form3
frm.showdialog
me.pw = frm.pw
me.pw = un
frm.dispose
////

Than you have all you need for your userlogin form from the mainform part.

I hope this helps,

Cor
Nov 21 '05 #5

P: n/a

"Jim Hughes" <NO*********@Hotmail.com> wrote in message
news:uv**************@TK2MSFTNGP15.phx.gbl...
Just guessing:

pw = Password
un = Username

Thanks a lot!

Mihailo
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.