Reputation: 441
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
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
Reputation: 65
Refer to this answer
Basically you process logout on that event handler Window.Closed
Upvotes: 1