Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
Application Class
Application Methods
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
.NET Framework Class Library
Application Methods

The Application type exposes the following members.

  NameDescription
Public methodStatic memberAddMessageFilterAdds a message filter to monitor Windows messages as they are routed to their destinations.
Public methodStatic memberDoEventsProcesses all Windows messages currently in the message queue.
Public methodStatic memberEnableVisualStylesEnables visual styles for the application.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic memberExit()()()Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed.
Public methodStatic memberExit(CancelEventArgs)Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed.
Public methodStatic memberExitThreadExits the message loop on the current thread and closes all windows on the thread.
Public methodStatic memberFilterMessageRuns any filters against a window message, and returns a copy of the modified message.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberOleRequiredInitializes OLE on the current thread.
Public methodStatic memberOnThreadExceptionRaises the ThreadException event.
Public methodStatic memberRaiseIdleRaises the Idle event in hosted scenarios.
Public methodStatic memberRegisterMessageLoopRegisters a callback for checking whether the message loop is running in hosted environments.
Public methodStatic memberRemoveMessageFilterRemoves a message filter from the message pump of the application.
Public methodStatic memberRestartShuts down the application and starts a new instance immediately.
Public methodStatic memberRun()()()Begins running a standard application message loop on the current thread, without a form.
Public methodStatic memberRun(ApplicationContext)Begins running a standard application message loop on the current thread, with an ApplicationContext.
Public methodStatic memberRun(Form)Begins running a standard application message loop on the current thread, and makes the specified form visible.
Public methodStatic memberSetCompatibleTextRenderingDefaultSets the application-wide default for the UseCompatibleTextRendering property defined on certain controls.
Public methodStatic memberSetSuspendStateSuspends or hibernates the system, or requests that the system be suspended or hibernated.
Public methodStatic memberSetUnhandledExceptionMode(UnhandledExceptionMode)Instructs the application how to respond to unhandled exceptions.
Public methodStatic memberSetUnhandledExceptionMode(UnhandledExceptionMode, Boolean)Instructs the application how to respond to unhandled exceptions, optionally applying thread-specific behavior.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberUnregisterMessageLoopUnregisters the message loop callback made with RegisterMessageLoop.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker