Closing form...

  • Thread starter Thread starter Mihailo
  • Start date Start date
M

Mihailo

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
 
Mihailo,

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

Cor
 
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!
 
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
 
Cor Ligthert said:
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
////
I dont understand what is PW and UN. If you can explain this I will be
appleciate. Thanks a lot.

Mihailo
 
Just guessing:

pw = Password
un = Username


Mihailo said:
I dont understand what is PW and UN. If you can explain this I will be
appleciate. Thanks a lot.

Mihailo
 
Back
Top