/// <summary> /// Generate code image. /// </summary> private void generateCodeImage() { try { if (this.InvokeRequired) { this.Invoke(new MethodInvoker(delegate { generateCodeImage(); })); } else { codeImage.Image = Common.CreateCodeImage(5); } } catch { throw; } }