Beispiel #1
0
        private void Button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form f2 = new Herramientas();

            f2.StartPosition = FormStartPosition.Manual;
            f2.Location      = new Point(this.Location.X + (this.Width - f2.Width) / 2, this.Location.Y + (this.Height - f2.Height) / 2);
            f2.Show(this);
        }
Beispiel #2
0
        private void texto_contra_TextChanged(object sender, EventArgs e)
        {
            String contra = "b30330104";

            if (texto_contra.Text.ToString() == contra)
            {
                Form f2 = new Herramientas();
                f2.StartPosition = FormStartPosition.Manual;
                f2.Location      = new Point(this.Location.X + (this.Width - f2.Width) / 2, this.Location.Y + (this.Height - f2.Height) / 2);
                this.Hide();
                f2.Show(this);
            }
        }
Beispiel #3
0
        //ABRE EL FORMULARIO ANTERIOR SI ESTE SE CIERRA
        private void FichaNotaria_FormClosing(object sender, FormClosingEventArgs e)
        {
            Herramientas pantallaprincipal2 = Owner as Herramientas;

            pantallaprincipal2.Show();
        }