G
garyusenet
I have a login form, which i have made by simply modifying the standard
wizard created form from Visual C# express - when I chose a windows
application.
I have two buttons on my login form.
The first is OK, The second is cancel.
For cancel i have the event set to application.exit
I'm now looking at the OK button. How do I open my main programme form
when OK is clicked?
I have tried Application.Run(new Form1()); But get an error complaining
something about threads.
Also as well as displaying my main form when the button is pressed I
will need to parse it the validated user name, how do i do this also?
I am sure this is basic, but couldn't find a direct answer.
Thanks,
Gary.
wizard created form from Visual C# express - when I chose a windows
application.
I have two buttons on my login form.
The first is OK, The second is cancel.
For cancel i have the event set to application.exit
I'm now looking at the OK button. How do I open my main programme form
when OK is clicked?
I have tried Application.Run(new Form1()); But get an error complaining
something about threads.
Also as well as displaying my main form when the button is pressed I
will need to parse it the validated user name, how do i do this also?
I am sure this is basic, but couldn't find a direct answer.
Thanks,
Gary.