label
,textbox
,button
을 이용하여 구현
useSystemPasswordChar
: True
PasswordChar
: *
private void SignInButton_Click(object sender, EventArgs e)
{
string userId = id.Text;
string userPassword = password.Text;
if (userId.Equals("MyId") && userPassword.Equals("MyPassword"))
{
MessageBox.Show("로그인 성공", "로그인");
}
else
{
MessageBox.Show("로그인 실패", "로그인");
}
}