private void updateTextBox(Label textbox, string text) { if (textbox.InvokeRequired) { updateLabelCallback callback1 = updateTextBox; Invoke(callback1, new object[] { textbox, text }); } else { textbox.Text = text; } }