public void setText(string s) { if (this.InvokeRequired) { setStringCallBack d = new setStringCallBack(setText); this.Invoke(d, new object[] { s }); } else { base.Text = s; } }
public void Add(string name) { if (this.InvokeRequired) { setStringCallBack d = new setStringCallBack(Add); this.Invoke(d, new object[] { name }); } else { this.Items.Add(name); } }