-
March 14th, 2003, 12:20 AM
#1
closing .NET form?
How can I close a .NET form programatically in C#?
-
March 14th, 2003, 12:35 AM
#2
never mind.......
myform.Close();
da...
-
March 14th, 2003, 11:51 AM
#3
actually, if that's an MDI application and suppose some exception or you want to quit
so you can use
Environment.Exit(0);
also
- Software Architect
-
March 14th, 2003, 07:08 PM
#4
-
March 14th, 2003, 07:28 PM
#5
"Application.Exit"
1) when you use Application.Exit then
Closed and Closing events of form are not invoked. so that you can't test it anyway.
"Environment.Exit"
2) actually the process itself is terminated here.
-Paresh
- Software Architect
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|