The password front end words great, but when I run the program it runs both the password method and the application method at the same time.
Is there anyway of stopping the application from executing before the previous method has run?
The following code is what I am using:
public static void Main()
{
//Request name and password from user
PasswordDialog objCallMethod = new PasswordDialog();
objCallMethod.Show();
//If Username and password are confirmed run the application
Application.Run(new fclsMain());
}
I've probably got it all completely wrong but then I'm completely new to this....
Any ideas would be a help!
Mike GoldRank #50 · 30.6K pointsPosted Apr 12, 2006, 5:19 AM EDT
if (objCallMethod.ShowDialog() == DialogResult.OK)
{
Application.Run(...
}
else
{
}
Mike GoldRank #50 · 30.6K pointsPosted Apr 12, 2006, 5:24 AM EDT
-Mike