How to Create a Simple Login Form in C#.NET using Visual Studio 2022? [With Source Code]
code:[inside the clicking event of button]
String username = txtUser.Text; String password = txtPass.Text; if(username=="admin" && password == "admin") { MessageBox.Show("Login Success","info",MessageBoxButtons.OK); } else { MessageBox.Show("Login Error","error",MessageBoxButtons.OKCancel, MessageBoxIcon.Error); } }
MORE: