[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Collapse]eXpressApp Framework
 [Expand]Getting Started
  [Expand]Application Solution Components
  [Expand]Business Model Design
  [Expand]Application Model
  [Expand]UI Construction
  [Expand]Controllers and Actions
  [Expand]Data Manipulation and Business Logic
  [Expand]Security System
  [Expand]System Module
  [Expand]Extra Modules
  [Expand]Debugging, Testing and Error Handling
  [Collapse]Application Life Cycle
   [Collapse]Windows Forms Application Life Cycle
     Windows Forms Application Creation and Initialization
     User Authentication using a Logon Window in Windows Forms Applications
     User Authentication Without a Logon Window in Windows Forms Applications
     Show the Main Window in Windows Forms Applications
   [Expand]ASP.NET Application Life Cycle
    Mobile Application Life Cycle
 [Expand]Design-Time Features
 [Expand]Task-Based Help
  Frequently Asked Questions (FAQ)
 [Expand]API Reference
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Windows Forms Application Life Cycle

The table in this topic details the steps performed while an XAF Windows Forms application is running.

Stage Description Ways to Customize
Application is created See Windows Forms Application Creation and Initialization.  
Splash screen is invoked The ISplash.Start method of the ISplash object assigned to the WinApplication.SplashScreen method is called. This method shows the splash screen form. See Splash Forms.
An end-user is authenticated See User Authentication using a Logon Window in Windows Forms Applications and User Authentication Without a Logon Window in Windows Forms Applications. See How to: Use Custom Logon Parameters and Authentication.
Start-up Popup Window Show Actions are executed A collection of Popup Window Show Actions is populated by the Actions that are registered as start-up Actions in modules used by the application. For instance, the ChangePasswordOnLogon represents a start-up Action. A pop-up window is displayed for each Action after an end-user has executed or canceled the previous Action. To register an Action as a start-up, override the GetStartupActions method in your module class. Return a list of Popup Window Show Actions in this method.
Main window is shown The application object asks its Show View Strategy (see ShowViewStrategyBase) to show a main window. Since, at this moment, the Show View Strategy is requested for the first time, it has not yet been created. So, an instance of the ShowInMultipleWindowsStrategy class is created, and then its ShowStartupWindow method is called. (See Show the Main Window in Windows Forms Applications.)  
Splash screen is closed A splash screen is closed by the ISplash.Stop method.  
Main window is displayed until a user closes it A user can close the main window by executing the Exit or LogOff Action. The Exit Action closes the application. The LogOff Action closes the main form and re-invokes the logon form.  

Is this topic helpful?​​​​​​​