void ShowSearchProgressBar(bool Show) { if (LogGrid.InvokeRequired) { ShowSearchProgressBar_d CALL_d = new ShowSearchProgressBar_d(ShowSearchProgressBar); LogGrid.Invoke(CALL_d, new object[] { Show }); } else { SearchProgressBar.Visible = Show; } }