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