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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

No subject

Thread ID:





329 Jun 4,2002 02:03 AM UTC Jun 4,2002 04:17 AM UTC WinForms 1
Tags: FAQ
Asked On June 4, 2002 02:03 AM UTC

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 04:17 AM UTC

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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon