开发者

Problem in Closing Exe

In C#, I am using form1 as homescreen,.. while running exe from Debug folder, form1.exe appears in Process tab in task manager,...

The problem is: Through form1 at runtime, i may create more instances of form1 while trying to close particular instance, the instances closed,.. but still exe appears in task manager.

what i found: If i close the i开发者_运维百科nstances in the order what we created,.. all exe closes correctly,.. but if close the 4th instance and then 3rd instance,.. exe remains in task manager. (instead of 3rd and then 4th instance)

I also used Application.Exit() but still the Exe remains in taskmanager,......


If all you want is to remove the .exe from the processes tab, you can probably use Environment.Exit(exitcode). But it does a forced exit on your app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜