Closing Windows Forms

Posted by Raj.Trivedi under Windows Forms on 10/25/2014 | Points: 10 | Views : 524 | Status : [Member] [MVP] | Replies : 0
Hello Team,

I have a Login form and on login button i am closing the login form and calling the MDI form. But when i call the MDI form the Login still remains open and it does not close. I have used both form.Dispose Method and form.Close and still does not work any idea.


Here is the code snippet of login button event

frmLogin objlogin = new frmLogin();
Main objmainMdi = new Main();
objlogin.Close(); // Also tried using Dispose Method
objmainMdi.Show();

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved



Responses

(No response found.)

Login to post response