PC Review


Reply
Thread Tools Rate Thread

Closing form...

 
 
Mihailo
Guest
Posts: n/a
 
      26th Mar 2005
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


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      26th Mar 2005
Mihailo,

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

Cor


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      26th Mar 2005
"Mihailo" <(E-Mail Removed)> 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/>

 
Reply With Quote
 
Mihailo
Guest
Posts: n/a
 
      26th Mar 2005

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!




 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      27th Mar 2005
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


 
Reply With Quote
 
Mihailo
Guest
Posts: n/a
 
      27th Mar 2005

"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> 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


 
Reply With Quote
 
Jim Hughes
Guest
Posts: n/a
 
      28th Mar 2005
Just guessing:

pw = Password
un = Username


"Mihailo" <(E-Mail Removed)> wrote in message
news:d27cje$ca4$(E-Mail Removed)...
>
> "Cor Ligthert" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
>> 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
>
>



 
Reply With Quote
 
Mihailo
Guest
Posts: n/a
 
      29th Mar 2005

"Jim Hughes" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Just guessing:
>
> pw = Password
> un = Username



Thanks a lot!

Mihailo


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Showing form , closing login form but not closing app, how Bob Microsoft VB .NET 3 21st Dec 2005 07:54 PM
Closing event in a MID Child form I don't know if the child form is closing or the main form is closing **Developer** Microsoft C# .NET 1 19th Oct 2005 04:51 PM
Just the form closing or application closing? **Developer** Microsoft VB .NET 8 19th Oct 2005 04:22 PM
Stopping a form from closing in its Closing hander Tom Jones Microsoft Dot NET Framework Forms 2 26th Aug 2004 01:24 PM
Multiple OutputTo (Called on Closing Form) Fails on Closing Database John Andrews Microsoft Access Macros 3 21st May 2004 08:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:44 AM.