private void Login_Load(object sender, EventArgs e) { try { ToolTip notificacion = new ToolTip(); notificacion.AutoPopDelay = 8000; notificacion.InitialDelay = 1000; notificacion.ReshowDelay = 500; notificacion.ShowAlways = true; notificacion.SetToolTip(this.btnLogin, "De clíc aquí o presione la tecla Enter para iniciar sesión en el sistema"); if (logincontroller.personalRegistrado() == 0) { Personal personal = new Personal(); personal.ShowDialog(); } } catch (Exception ex) { MessageBox.Show("Error: " + ex, "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void lblSubMenu11_Click(object sender, EventArgs e) { Personal personal = new Personal(); personal.ShowDialog(); }