Application Startup Sequence
The following UML sequence diagram shows an overview of the sequence of events that occur when your MM .NET Windows Forms application starts up.

As this diagram shows, AppMainEntry is the first class to instantiate when you run an MM .NET Windows Forms application. Its static, Main method does two things:
- Instantiates your application's AppDesktop class
- Instantiates your application's MainForm class. It does this by passing a new instance of MainForm in a call to System.Windows.Forms.Application.Run.
The code that corresponds to this sequence diagram is found in the AppMainEntry class which is located in your application's Main.cs or Main.vb file.
The instantiation of the application object and main form are contained within a try block. This causes any unhandled exceptions in your application to be caught by the associated catch block which logs the error and displays a message to the user.
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 06/08/10
Comment or report problem with topic
