Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace replace
- {
- public partial class Form2 : Form
- {
- public Form2()
- {
- InitializeComponent();
- }
- private void btn_entrer_Click(object sender, EventArgs e)
- {
- string user = "c++ programmer";
- string password = "startimes";
- if (txt_login.Text == user && txt_pass.Text == password)
- {
- Form programme = new Form1();
- programme.Show();
- this.Hide();
- }
- else
- {
- System.Threading.Thread.Sleep(1000);
- label_erreur.Visible = true;
- txt_login.Clear();
- txt_pass.Clear();
- }
- }
- private void btn_exit_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement