In C#.net,
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 instances 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)

Can anyone help me?

Recommended Answers

All 3 Replies

Use Application.Exit() method to stop the application domain.

By using Application.Exit()
the application is closed but still exe appears in process tab in taskmanager

Yes, i have closed the exe through process id
Thanks

Swami

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.