2
Reply

Method's question...

ablivian

ablivian

Apr 11 2006 7:04 PM
2k
I'm trying to create a simple application that requires the user to enter their username and password before the application will execute.

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!


Answers (2)
Next Recommended Forum