private void labtext(Label lb, string str) { if (lb.InvokeRequired) { stringget sg = new stringget(labtext); this.Invoke(sg, new object[] { lb, str }); } else { lb.Text = str; } }