private void OperationsOnOnTraverseEvent(string status) { ResultsLabel.InvokeIfRequired(label => { label.Text = status; label.Refresh(); }); }
private void OperationsOnOnTraverseEvent(string status) { if (status.Contains("C:\\OED\\Dotnetland\\VS2019\\csharp-tips\\ClearControlsWindowsForms")) { listBox1.InvokeIfRequired(listbox => { listbox.Items.Add(status); //listbox.Refresh(); }); } ResultsLabel.InvokeIfRequired(label => { label.Text = status; label.Refresh(); }); }