So you hard code your passwords and usernames into your program, this is not very a good idea.
>>and load next window this step I can't over
I think you mean you cannot switch between the login window and the next. Well close the login form and open the main form.
A way to do this is open both forms but call form.Hide() on the main form. Then switch between form.Show() and form.Hide().
Reputation Points: 2035
Solved Threads: 645
Senior Poster
Offline 3,740 posts
since Oct 2008