I wrote a piece of Winform Application. My problem is that When I call Application.Exit(), the program does not exits, but continues on the next line. I've tried Application.ExitThred(), but in Vain.

Does any of you tell me what is happening and if there is a way to solve it.

Thanks

Maybe you have some code line afterwards so, he's trying to finish the current procedure: Try an "return;" after your Application.Exit();

i have the same problem

commented: Then start your own thread instead of piggybacking this one. -4
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.