Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            a_main ss = new a_main();

            ss.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            string username = textBox1.Text;
            //textBox2.Text = "";
            //textBox2.PasswordChar = '*';
            //textBox2.MaxLength = 20;
            string password = textBox2.Text;

            //textBox2.PasswordChar = '*';

            if ((this.textBox1.Text == "Admin") && (this.textBox2.Text == "admin"))
            {
                //attempt = 0;
                //pictureBox1.Image = new Bitmap(@"C:\Users\Mic 18\Desktop\granted.jpg");
                MessageBox.Show("you are granted with access");
                this.Hide();
                a_main ss = new a_main();
                ss.Show();
            }

            else
            {
                // pictureBox1.Image = new Bitmap(@"C:\Users\Mic 18\Desktop\denied.jpg");
                MessageBox.Show("you are not granted with access");
            }
        }