public virtual void SetControlTag(Control Control, Object TagObject) { if (this.InvokeRequired) { SetControlTagDelegate dele = new SetControlTagDelegate(SetControlTag2); this.Invoke(dele, new object[] { Control, TagObject }); } else { SetControlTag2(Control, TagObject); } }