Jerry wrote:
I'm developing an application that has an initial login form. It uses a
user class that checks for a valid user. If the user is valid, it
populates public variables in the class, hides the login form and shows
the next form. Is there a way to use the variables from the user class
in the new form that opens?
If you structure your project so that Sub Main is the startup object,
in the Sub Main code you could fire off your login screen with an:
Application.Run(LoginForm)
and the LoginForm instance defined in Sub Main becomes a global
variable, and all properties in it are also available globally. Of
course, the login form would have to open the next form in the chain.