I have a simple WinForm app. For a user to use the app, however, they must login. What I’m trying to do is:
1) open the main form,
2) deactivate it,
3) show the login form,
4) reactivate the main form once the login form is exited and authentication has completed successfully.
I’m looking for some skeleton code just for handling the Win Forms behavior.
From the “Shown” form event, use
ShowDialog()to make it modal to your application.