public Login() { InitializeComponent(); datos cn = new datos(); cn.conec(); sCn = cn.cadena; conn = new SqlConnection(sCn); }
public Grados() { InitializeComponent(); this.toolTip1.SetToolTip(this.pictureBox2, "Modificar"); this.toolTip1.SetToolTip(this.pictureBox3, "Eliminar"); this.toolTip1.SetToolTip(this.pictureBox1, "Guardar"); this.toolTip1.SetToolTip(this.pictureBox5, "Consultar"); datos cn = new datos(); cn.conec(); sCn = cn.cadena; conn = new SqlConnection(sCn); }