private void QueryBackgroundWorker_DoWork(object sender, DoWorkEventArgs e) { this.Invoke(new Action(() => { buttonBuscar.Enabled = false; loaderControl1.title = "Por favor espere"; loaderControl1.description = "Obteniendo información"; loaderControl1.Visible = true; } )); //System.Threading.Thread.Sleep(3000); ReportsBLL ReportsBLL = new ReportsBLL(); this.Invoke(new Action(() => dataGridViewReporteGeneral.DataSource = ReportsBLL.ReportExtrasHours(dateTimeFechaInicio.Value, dateTimeFechaFin.Value, Convert.ToInt32(comboBoxTurno.SelectedValue.ToString()), Convert.ToInt32(comboBoxDepartamento.SelectedValue.ToString()), Convert.ToInt32(comboBoxEmpleado.SelectedValue.ToString())))); }