[About] Version=1.0 Author=Nic Mail=support@hiasm.com [Type] Class=Element Info=Provides static methods and properties to manage an application, such as methods to start and stop an application, to process Windows messages, and properties to get information about an application. This class cannot be inherited. [Property] @CurrentCulture=Sets the culture information for the current thread. ARG(CultureInfo)|20|(empty)|CultureInfo @CurrentInputLanguage=Sets the current input language for the current thread. ARG(InputLanguage)|20|(empty)|InputLanguage @SafeTopLevelCaptionFormat=Sets the format string to apply to top-level window captions when they are displayed with a warning banner. ARG(string)|2| @UseWaitCursor=Sets whether the wait cursor is used for all open forms of the application. ARG(bool)|14|1|True,False @VisualStyleState=Gets a value that specifies how visual styles are applied to application windows. ARG(VisualStyleState)|14|3|NoneEnabled,ClientAreaEnabled,NonClientAreaEnabled,ClientAndNonClientAreasEnabled [Methods] *doAddMessageFilter=Adds a message filter to monitor Windows messages as they are routed to their destinations. ARG(IMessageFilter value)|1|0 *doDoEvents=Processes all Windows messages currently in the message queue. ARG()|1|0 *doEnableVisualStyles=Enables visual styles for the application. ARG()|1|0 *doExit=Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed. ARG()|1|0 *doExit2=Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed. ARG(CancelEventArgs e)|1|0 *doExitThread=Exits the message loop on the current thread and closes all windows on the thread. ARG()|1|0 *doFilterMessage=Runs any filters against a window message, and returns a copy of the modified message. ARG(ref Message message)|1|0 *doOnThreadException=Raises the ThreadException event. ARG(Exception t)|1|0 *doRaiseIdle=Raises the Idle event in hosted scenarios. ARG(EventArgs e)|1|0 *doRegisterMessageLoop=Registers a callback for checking whether the message loop is running in hosted environments. ARG(Application.MessageLoopCallback callback)|1|0 *doRemoveMessageFilter=Removes a message filter from the message pump of the application. ARG(IMessageFilter value)|1|0 *doRestart=Shuts down the application and starts a new instance immediately. ARG()|1|0 *doRun=Begins running a standard application message loop on the current thread, without a form. ARG()|1|0 *doRun2=Begins running a standard application message loop on the current thread, with an ApplicationContext. ARG(ApplicationContext context)|1|0 *doRun3=Begins running a standard application message loop on the current thread, and makes the specified form visible. ARG(Form mainForm)|1|0 *doSetCompatibleTextRenderingDefault=Sets the application-wide default for the UseCompatibleTextRendering property defined on certain controls. ARG(bool defaultValue)|1|0 *doSetSuspendState=Suspends or hibernates the system, or requests that the system be suspended or hibernated. ARG(PowerState state, bool force, bool disableWakeEvent)|1|0 *doSetUnhandledExceptionMode=Instructs the application how to respond to unhandled exceptions. ARG(UnhandledExceptionMode mode)|1|0 *doSetUnhandledExceptionMode2=Instructs the application how to respond to unhandled exceptions, optionally applying thread-specific behavior. ARG(UnhandledExceptionMode mode, bool threadScope)|1|0 *doUnregisterMessageLoop=Unregisters the message loop callback made with RegisterMessageLoop. ARG()|1|0 *onApplicationExit=Occurs when the application is about to shut down. ARG(EventArgs)|2|0 *onEnterThreadModal=Occurs when the application is about to enter a modal state. ARG(EventArgs)|2|0 *onFilterMessage=Occurs after invoke the method doFilterMessage and returns the result. ARG(bool)|2|104 *onIdle=Occurs when the application finishes processing and is about to enter the idle state. ARG(EventArgs)|2|0 *onLeaveThreadModal=Occurs when the application is about to leave a modal state. ARG(EventArgs)|2|0 *onSetSuspendState=Occurs after invoke the method doSetSuspendState and returns the result. ARG(bool)|2|104 *onThreadException=Occurs when an untrapped thread exception is thrown. ARG(ThreadExceptionEventArgs)|2|0 *onThreadExit=Occurs when a thread is about to shut down. When the main thread for an application is about to be shut down, this event is raised first, followed by an ApplicationExit event. ARG(EventArgs)|2|0 *AllowQuit=Returns a value indicating whether the caller can quit this application. ARG(bool)|3|104 *CommonAppDataPath=Returns the path for the application data that is shared among all users. ARG(string)|3|2 *CommonAppDataRegistry=Returns the registry key for the application data that is shared among all users. ARG(RegistryKey)|3|0 *CompanyName=Returns the company name associated with the application. ARG(string)|3|2 *CurrentCulture=Returns the culture information for the current thread. ARG(CultureInfo)|3|0 *CurrentInputLanguage=Returns the current input language for the current thread. ARG(InputLanguage)|3|0 ExecutablePath=Returns the path for the executable file that started the application, including the executable name. ARG(string)|3|2 *LocalUserAppDataPath=Returns the path for the application data of a local, non-roaming user. ARG(string)|3|2 *MessageLoop=Returns a value indicating whether a message loop exists on this thread. ARG(bool)|3|104 *OleRequired=Initializes OLE on the current thread. ARG(ApartmentState)|3|0 *OpenForms=Returns a collection of open forms owned by the application. ARG(FormCollection)|3|0 *ProductName=Returns the product name associated with this application. ARG(string)|3|2 *ProductVersion=Returns the product version associated with this application. ARG(string)|3|2 *RenderWithVisualStyles=Returns a value specifying whether the current application is drawing controls with visual styles. ARG(bool)|3|104 *SafeTopLevelCaptionFormat=Returns the format string to apply to top-level window captions when they are displayed with a warning banner. ARG(string)|3|2 *StartupPath=Returns the path for the executable file that started the application, not including the executable name. ARG(string)|3|2 *UserAppDataPath=Returns the path for the application data of a user. ARG(string)|3|2 *UserAppDataRegistry=Returns the registry key for the application data of a user. ARG(RegistryKey)|3|0 *UseWaitCursor=Returns whether the wait cursor is used for all open forms of the application. ARG(bool)|3|104 *VisualStyleState=Returns a value that specifies how visual styles are applied to application windows. ARG(VisualStyleState)|3|0 *callback=Defines the method to call when Windows Forms needs to check if the hosting environment is still sending messages. ARG(Application.MessageLoopCallback)|4|0 *context=Defines an ApplicationContext in which the application is run. ARG(ApplicationContext)|4|0 *defaultValue=Defines the default value to use for new controls. If true, new controls that support UseCompatibleTextRendering use the GDI+ based Graphics class for text rendering; if false, new controls use the GDI based TextRenderer class. ARG(bool)|4|104 *disableWakeEvent=Defines true to disable restoring the system's power status to active on a wake event, false to enable restoring the system's power status to active on a wake event. ARG(bool)|4|104 *e=Defines returns whether any Form within the application cancelled the exit. ARG(CancelEventArgs)|4|0 *force=Defines true to force the suspended mode immediately; false to cause Windows to send a suspend request to every application. ARG(bool)|4|104 *mainForm=Defines a Form that represents the form to make visible. ARG(Form)|4|0 *message=Defines the Windows event message to filter. ARG(Message)|4|0 *mode=Defines an UnhandledExceptionMode value describing how the application should behave if an exception is thrown without being caught. ARG(UnhandledExceptionMode)|4|0 *state=Defines a PowerState indicating the power activity mode to which to transition. ARG(PowerState)|4|0 *t=Defines an Exception that represents the exception that was thrown. ARG(Exception)|4|0 *threadScope=Defines true to set the thread exception mode; otherwise, false. ARG(bool)|4|104 *value=Defines the implementation of the IMessageFilter interface you want to install. ARG(IMessageFilter)|4|0