LoginForm.cs 518 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Windows.Forms;
  3. namespace WindowsFormsApp1
  4. {
  5. public partial class LoginForm : Form
  6. {
  7. public LoginForm()
  8. {
  9. InitializeComponent();
  10. txtPassword.PasswordChar = '*';
  11. }
  12. private void btnLogin_Click(object sender, EventArgs e)
  13. {
  14. Form1 frm =
  15. new Form1(
  16. txtLogin.Text,
  17. txtPassword.Text);
  18. frm.Show();
  19. this.Hide();
  20. }
  21. }
  22. }