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 GoldPosted Apr 12, 2006, 9:24 AM
-Mike
Mike GoldPosted Apr 12, 2006, 9:19 AM
if (objCallMethod.ShowDialog() == DialogResult.OK)
{
Application.Run(...
}
else
{
}