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 HussainRank #423 · 5.9K reputationPosted Jul 17, 2013, 1:20 AM EDT
and in Program.cs
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 16, 2013, 9:19 PM EDT
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
NAGARAJU TAMADA134 reputationPosted Jul 16, 2013, 10:34 PM EDT
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 HussainRank #423 · 5.9K reputationPosted Jul 16, 2013, 11:01 PM EDT
Regards,
Iftikar
NAGARAJU TAMADA134 reputationPosted Jul 17, 2013, 1:04 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 17, 2013, 1:07 AM EDT
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 17, 2013, 1:10 AM EDT
Regards,
Iftikar
NAGARAJU TAMADA134 reputationPosted Jul 17, 2013, 1:14 AM EDT
Loginform close and Adminform will open my code is here
NAGARAJU TAMADA134 reputationPosted Jul 17, 2013, 1:50 AM EDT
Its working fine now
Regards
NagaRaju T