Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need link my loging form and form2.When enter correct paswrd and usrname shuold load 2n form.Pls pls help me.Tax
Posted

See if this CodeProject tip/trick doesn't help you:

Multiple Subsequent "Main" Forms in C# Apps[^]
 
Share this answer
 
To display any Form you can use Show() method.Just Check your Valid Login using IF..Else condition and if Login is valid then simply display Form.Example :
VB
If txtPassword.Text = "12345678" Then
    Form1.Show()   'Display Form1 If Valid Login
Else
    MessageBox.Show("Invalid Password")
End IF
 
Share this answer
 
if (passwordbox.Text == "password")
{
Form2.show();

}
else
Mgs.show("not correct pwd");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900