Example #1
0
        private void Lock_Click_1(object sender, EventArgs e)
        {
            if (password.Text == confirm_password.Text)
            {
                Lock_Screen ls = new Lock_Screen();
                ls.Show();

            }
            else
            {
                MessageBox.Show("Please Enter the same password...!!!!");
                // MessageBox.Show(password_create());
            }
        }
Example #2
0
        private void Lock_Click_1(object sender, EventArgs e)
        {
            if (password.Text == confirm_password.Text)
            {
                // create a writer and open the file
                TextWriter tw = new StreamWriter("data.txt");

                // write a line of text to the file
                tw.WriteLine(password.Text);

                // close the stream
                tw.Close();

                Lock_Screen ls = new Lock_Screen();
                ls.Show();
            }
            else
            {
                MessageBox.Show("Please Enter the same password...!!!!");
                // MessageBox.Show(password_create());
            }
        }
Example #3
0
        private void Lock_Click_1(object sender, EventArgs e)
        {
            if (password.Text == confirm_password.Text)
            {

                // create a writer and open the file
                TextWriter tw = new StreamWriter("data.txt");

                // write a line of text to the file
                tw.WriteLine(password.Text);

                // close the stream
                tw.Close();

                Lock_Screen ls = new Lock_Screen();
                ls.Show();

            }
            else
            {
                MessageBox.Show("Please Enter the same password...!!!!");
                // MessageBox.Show(password_create());
            }
        }