private void Settext(TextBox thectrl, string thetxt) { if (thectrl.InvokeRequired) { TBDelegate d = new TBDelegate(Settext); this.Invoke(d, thectrl, thetxt); } else thectrl.Text = thetxt; }
public FMain() { InitializeComponent(); f1 = new ControlDelegate(ControlWriteText); f2 = new TBDelegate(TBGetDouble); }