using System;
using [Link];
using [Link];
namespace LoginForm
{
public partial class LoginForm : Form
{
public LoginForm()
{
InitializeComponent();
}
private void btnLogin_Click(object sender, EventArgs e)
{
string username = [Link];
string password = [Link];
string confirmPassword = [Link];
DateTime dob = [Link];
string rememberText = [Link];
// Validation
if ([Link](username) ||
[Link](password) ||
[Link](confirmPassword))
{
[Link]("All fields are required!", "Error",
[Link], [Link]);
return;
}
if ((?=.*\\d).{6,}$"))
{
[Link]("Password must be alphanumeric and at least 6
characters!", "Error", [Link], [Link]);
return;
}
if (password != confirmPassword)
{
[Link]("Passwords do not match!", "Error",
[Link], [Link]);
return;
}
[Link]("Login Successful!", "Success", [Link],
[Link]);
}
}
}