private void UpdateInstanceName(string instanceName) { if (m_formClosing) return; if (InvokeRequired) { BeginInvoke(new Action<string>(UpdateInstanceName), instanceName); } else { textBoxInstanceName.Text = instanceName; } }