Bikram Limbu
Bikram Limbu

Reputation: 441

Logout everytime i close the form application C# WCF

So, I am kind of beginner in WCF and I've build a windows form chat application that show user logged in once they login but i want to make logout even if the user cross (X) close the form directly. so How can i do that.. Thank You.

Upvotes: 2

Views: 371

Answers (2)

Nicola Munz
Nicola Munz

Reputation: 73

I would make a method Logout and excecute it i the Window.Closed event and also implement it in the Logout button.Clicket .

Upvotes: 1

Tecno
Tecno

Reputation: 65

Refer to this answer

Basically you process logout on that event handler Window.Closed

Upvotes: 1

Related Questions