Ejemplo n.º 1
0
        private void forgot_link_Click(object sender, EventArgs e)
        {
            Forgot forgot = new Forgot();

            forgot.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        /* end : add box-shadow */

        /* start : escape key event */
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == Keys.Escape)
            {
                if (from.Equals("profile"))
                {
                    Main main = new Main();
                    main.Show();
                    this.Hide();
                }
                else if (from.Equals("forgot"))
                {
                    Forgot forgot = new Forgot();
                    forgot.Show();
                    this.Hide();
                }
                return(true);
            }
            return(base.ProcessCmdKey(ref msg, keyData));
        }