/// <summary> /// Perform startup operations. /// </summary> private void frmMain_Load(System.Object eventSender, System.EventArgs eventArgs) { try { frmMy = this; Startup(); } catch (Exception ex) { throw; } }
/// <summary> /// Displays the application's main form. /// </summary> public static void Main() { frmMy = new frmMain(); Application.Run(frmMy); }