private void lblGet(Label lbl, string str) { if (lbl.InvokeRequired) { lblmain a = new lblmain(lblGet); this.Invoke(a, new object[] { lbl, str }); } else { if (str == null) { lbl.ForeColor = Color.Red; } else { lbl.Text = str; } } }
private void lblGet(Label lbl, string str) { if (lbl.InvokeRequired) { lblmain a = new lblmain(lblGet); this.Invoke(a, new object[] { lbl, str }); } else { if (str == null) { lbl.ForeColor = Color.Red; } else { lbl.Text = str; } } }