Home All Groups Group Topic Archive Search About
Author
26 Mar 2005 2:55 PM
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

Author
26 Mar 2005 4:28 PM
Cor Ligthert
Mihailo,

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

Cor
Author
26 Mar 2005 5:20 PM
Herfried K. Wagner [MVP]
"Mihailo" <aldeir***@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/>
Author
26 Mar 2005 6:36 PM
Mihailo
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!
Author
27 Mar 2005 7:24 AM
Cor Ligthert
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
Author
27 Mar 2005 10:36 PM
Mihailo
"Cor Ligthert" <notmyfirstn***@planet.nl> wrote in message
news:#tOWO4pMFHA.3076@TK2MSFTNGP14.phx.gbl...
> 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
Author
28 Mar 2005 1:48 AM
Jim Hughes
Just guessing:

pw = Password
un = Username


Show quoteHide quote
"Mihailo" <aldeir***@yahoo.com> wrote in message
news:d27cje$ca4$2@news.eunet.yu...
>
> "Cor Ligthert" <notmyfirstn***@planet.nl> wrote in message
> news:#tOWO4pMFHA.3076@TK2MSFTNGP14.phx.gbl...
>> 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
>
>
Author
29 Mar 2005 7:49 PM
Mihailo
"Jim Hughes" <NOSPAMJ3033@Hotmail.com> wrote in message
news:uv5L8hzMFHA.1884@TK2MSFTNGP15.phx.gbl...
> Just guessing:
>
> pw = Password
> un = Username


Thanks a lot!

Mihailo