I am using a C# windows forms application. When I launch the project, a dialog box will appear with menus. In a particular menu, I choose Options and Options dialog box opens. Inside that, I need to enter a username and password and validate it against the DB. If credentials are correct, I should make a login form to display (I have login form as part of my project), upon closing the project and running it the next time. How do I go about doing this?
How and where should I store the result of the validation of username and password and make the project remember to launch the login form, when I launch the project next time???