mamo
March 13th, 2003, 11:20 PM
How can I close a .NET form programatically in C#?
|
Click to See Complete Forum and Search --> : closing .NET form? mamo March 13th, 2003, 11:20 PM How can I close a .NET form programatically in C#? mamo March 13th, 2003, 11:35 PM never mind....... myform.Close(); da... pareshgh March 14th, 2003, 10:51 AM actually, if that's an MDI application and suppose some exception or you want to quit so you can use Environment.Exit(0); also ;) GMV March 14th, 2003, 06:08 PM Application.Exit(); pareshgh March 14th, 2003, 06:28 PM "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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |