public void Perform() { if (!TargetControl.InvokeRequired) { PerformCore(); return; } TargetControl.Invoke((Action)Perform, null); }