private void SetMaxNumFeatures(string value) { if (InvokeRequired) { this.Invoke(new Action<string>(SetMaxNumFeatures), new object[] { value }); return; } MaxNumFeaturesBox.Text = value; }