Re: Windows Forms General start up logIn from then start up form windows
boban.s
Start the main form and in the load event do this:
-hide the form
-show the login form as dialog.
-create a property in the login form that will be public and will show that the login is successfull
-after closing login dialog form, check that property
-if the login is successfull, show the main form, else exit application.