Hi
Error - Cannot convert Lambda expression to delegate type because it is not a delegate type
Below is the code
dgvWindows.BeginInvoke(() =>
{
if (!_isRunning)
return;
var row = dgvWindows.Rows[dgvWindows.Rows.Add()];
row.Cells[0].Value = handle;
row.Cells[1].Value = _driver == null ? string.Empty : _driver.Title;
row.Cells[2].Value = state;
row.Cells[3].Value = $"{_duration.Hours:00}:{_duration.Minutes:00}:{_duration.Seconds:00}";
row.HeaderCell.Value = row.Index + 1;
BeginInvoke(() => Text = $"YouTube Tools - {row.Index + 1}");
});
Thanks