private void frmCerrarPeriodo_Load(object sender, EventArgs e) { DataTable dtPeriodo = PeriodoContableDAC.GetPeriodoContableACerrar(); this.txtEjercicio.Text = dtPeriodo.Rows[0]["IDEjercicio"].ToString(); this.txtPeriodo.Text = dtPeriodo.Rows[0]["Periodo"].ToString(); this.txtFecha.Text = dtPeriodo.Rows[0]["FechaFinal"].ToString(); }