We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

No subject

Thread ID:

Created:

Updated:

Platform:

Replies:

329 Jun 3,2002 10:03 PM Jun 4,2002 12:17 AM Windows Forms 1
loading
Tags: FAQ
quilla_b
Asked On June 3, 2002 10:03 PM

I have this small problem that I can't seem to figure out. I have a login form and when the user clicks on the login button, the main menu form will appear but the login form is still behind the main menu form. How do i close the login form once the user clicks on the login button. in vb6, i would do: Unload frmLogin but it won't work in vb.net. if i do frmLogin.Dispose or frmLogin.Close, it won't close!! y?? But if i put the frmLogin.Close just right before I call frmMain.show, my frmMain closes!!

Clay Burch [Syncfusion]
Replied On June 4, 2002 12:17 AM

Here is something to try. Move your Login code from the Main sub where I suspect it is now, a handler for the Load event on your frmMain. Then if your login fells, just close the frmMain from within its Load handler. This way, the scope of your login form should be contained within the Load handler, and it should not stay on your desktop.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;