private void SetLabel(Button control) { if (control.InvokeRequired) { setLabelDelegate del = new setLabelDelegate(SetLabel); control.Invoke(del, control); } else { SetLabel lbl = new SetLabel(control.Text); lbl.ShowDialog(); if (lbl.DialogResult == DialogResult.OK) { control.Text = lbl.Label; } //control.Text = } }