Millora en el login
-
The source is: private void Form1_Load(object sender, System.EventArgs e) { password.Text = " "; password.PasswordChar = "*"; } private void SubmitPass_Click(object sender, System.EventArgs e) { if (id.Text == " USER " && password.Text == " PASSWORD ") { //here you have put the action that you want that the application //do when login is true (for example) this.WindowState = System.Windows.Forms.FormWindowState.Maximized; //this action does that the window state application is //maximized } else //here the action that you want that the application would do //if the login is false (for example) MessageBox.Show ("Login incorrect. Try again","Login by Rugi",MessageBoxButtons.OK,MessageBoxIcon.Error); //this action is because the application shows a critical (message box) Visca Catalunya ||*|| Salutacions cordials: Roger Roca
-
The source is: private void Form1_Load(object sender, System.EventArgs e) { password.Text = " "; password.PasswordChar = "*"; } private void SubmitPass_Click(object sender, System.EventArgs e) { if (id.Text == " USER " && password.Text == " PASSWORD ") { //here you have put the action that you want that the application //do when login is true (for example) this.WindowState = System.Windows.Forms.FormWindowState.Maximized; //this action does that the window state application is //maximized } else //here the action that you want that the application would do //if the login is false (for example) MessageBox.Show ("Login incorrect. Try again","Login by Rugi",MessageBoxButtons.OK,MessageBoxIcon.Error); //this action is because the application shows a critical (message box) Visca Catalunya ||*|| Salutacions cordials: Roger Roca
Can you write your question in english, please? 'A programmer ist just a tool which converts caffeine into code'