I have a main form,in this i placed menustrip with some menuitems. When i clicked a menu item form will displayed.When I clicked another one the previous one should be closed.
I used this below code
this.Close();
AdminMainForm adminMainForm = new AdminMainForm();
adminMainForm.Show();
But this code not working for my query.
when I use this.Hide() the Application is still running
Finally my query is when i enter and close the login form automativally it will displayed main form. please reply to me
Regards
Nagaraju T

Iftikar HussainPosted Jul 17, 2013, 5:20 AM
and in Program.cs
Regards,
Iftikar
NAGARAJU TAMADAPosted Jul 17, 2013, 5:50 AM
Its working fine now
Regards
NagaRaju T
NAGARAJU TAMADAPosted Jul 17, 2013, 5:14 AM
Loginform close and Adminform will open my code is here
Iftikar HussainPosted Jul 17, 2013, 5:10 AM
Regards,
Iftikar
Iftikar HussainPosted Jul 17, 2013, 5:07 AM
Regards,
Iftikar
NAGARAJU TAMADAPosted Jul 17, 2013, 5:04 AM
Iftikar HussainPosted Jul 17, 2013, 3:01 AM
Regards,
Iftikar
NAGARAJU TAMADAPosted Jul 17, 2013, 2:34 AM
But Iam not using the MDI container.Iam using normal form and placed menustrip and add forms to this menu strip items.
Reply to me
Iftikar HussainPosted Jul 17, 2013, 1:19 AM
Please refer the below link
http://www.cs.trinity.edu/~thicks/Tutorials/Visual-Studio-Windows-App-Form-MenuStrip-Apps/Visual-Studio-Windows-App-Form-MenuStrip-Apps.html
Regards,
Iftikar