private void button1_Click(object sender, EventArgs e) { //se manda una consulta de autenticacion string login = this.textBox1.Text; string password = this.textBox2.Text; if (ap.Abrir_Sesion(login, password)) { this.Dispose(); return; } this.label_err.Visible = true; this.textBox2.Text = ""; this.textBox2.Focus(); }