private void SetStatusLabel(string status) { if (this.statusLabel.InvokeRequired) { SetTextLabel d = new SetTextLabel(SetStatusLabel); this.Invoke(d, new object[] { status }); } else this.statusLabel.Text = status; }
public void SetLabel(Label lb, string labelText) { try { SetTextLabel mi = new SetTextLabel(SetLbText); Invoke(mi, new object[] { lb, labelText }); } catch (Exception) { } }
private void SetStatusLabel(string status) { if (this.statusLabel.InvokeRequired) { SetTextLabel d = new SetTextLabel(SetStatusLabel); this.Invoke(d, new object[] { status }); } else { this.statusLabel.Text = status; } }
public void SetLabel(Label lb, string labelText) { SetTextLabel mi = new SetTextLabel(SetLbText); Invoke(mi, new object[] { lb, labelText }); }