Click here to Skip to main content
15,663,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,
In my windows application, when i tried to close a maximized form, first its go to the normal state and then closing in C#.Net.
So please provide some solutions for clearing this.

Thanking you.
Posted
Updated 16-Apr-10 2:38am
v2

In your form, when you call this.Close(), it should close the form. Show us your code, and we may be able to help you beyond saying "The gods are pissed, and you happen to be on their rader at the time."




 
Share this answer
 
Thank you for your reply, yeah i written this close, but the action behind this code is first it will go to the normalized stage and den closing.You just tried to close a maximized form in a mdi , u can see this problem....

I have used this code....

foreach (Form f in Application.OpenForms)
{
     if(f.name!="frmabc")
     {
       f.close();
       break;
     }
}
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900