can any one tell me log out or sinout code in c# using windows from application

Recommended Answers

All 4 Replies

Reverse what you did for login.

in reservation there is login form then login and complete task then there is logout
but i dont know how to code in logout label

Disable all your buttons and show the login form again. Its almost like restarting your application. Starting your application with new user credentials.

use to line on the logout click event
Application.Exit();
Application.Restart();

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.