hi ,
i created window application and problem is when i close the application then take
some time and i thing some object in application tack time to dispose how make a fast
quit application
i m using application.exist();
any other option
help me
thanks.
Loading

Roy SpoolderPosted Nov 26, 2009, 8:30 AM
You're right, Application.Exit(); is the simplest way to close your application.
With a difficult solution. Increase the chances of errors in your code.
Regards,
Roy Spoolder.
Kirtan PatelPosted Oct 31, 2009, 1:52 AM
it will do the same task as Application.Exit()
but Will terminate the Application Immediately
Dharmesh SharmaPosted Oct 31, 2009, 1:11 AM
just simple object and use reference
some other idea
jingePosted Oct 31, 2009, 12:17 AM
Please check out if you are using multi-thread in your application, or if you are doing some long time job in the Closing event handler of any form .
Kirtan PatelPosted Oct 31, 2009, 12:15 AM
Here is Code to Close the Process Immediately ...
using System.Diagnostics;
private void button1_Click(object sender, EventArgs e)
{
Process p = Process.GetCurrentProcess();
p.Kill();
}
Friend , i seen that you are not you are not checking "Do you like this answer" even if the answer helps you ..i have answered your many questions ..but after asking question even you not responding also.
so please do it :) it encourage the helper to answer your questions :)