Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
Microsoft Developer Network
Home
Library
Learn
Samples
Downloads
Support
Community
Forums
Classic
  |  
Lightweight
  |  
ScriptFree
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 4
Please Wait
.NET Framework Class Library
Please Wait
System.Windows Namespaces
Please Wait
System.Windows.Forms
Please Wait
Application Class
Please Wait
Application Methods
Please Wait
Collapse All
Expand All
Language Filter
Visual Basic
C#
C++
J#
JScript
XAML
F#
Members Filter
Include Protected Members
Include Inherited Members
Frameworks Filter
Include .NET Framework Members
Include XNA Framework Members
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4
Other versions are also available for the following:
Microsoft Visual Studio 2003/.NET Framework 1.1
Microsoft Visual Studio 2005/.NET Framework 2.0
.NET Framework 3.0
Microsoft Visual Studio 2008/.NET Framework 3.5
Microsoft Visual Studio 11/.NET Framework 4.5
.NET Framework Class Library
Application Methods
The
Application
type exposes the following members.
Methods
Name
Description
AddMessageFilter
Adds a message filter to monitor Windows messages as they are routed to their destinations.
DoEvents
Processes all Windows messages currently in the message queue.
EnableVisualStyles
Enables visual styles for the application.
Equals(Object)
Determines whether the specified
Object
is equal to the current
Object
.
(Inherited from
Object
.)
Exit
()
()
()
Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed.
Exit(CancelEventArgs)
Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed.
ExitThread
Exits the message loop on the current thread and closes all windows on the thread.
FilterMessage
Runs any filters against a window message, and returns a copy of the modified message.
Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from
Object
.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from
Object
.)
GetType
Gets the
Type
of the current instance.
(Inherited from
Object
.)
MemberwiseClone
Creates a shallow copy of the current
Object
.
(Inherited from
Object
.)
OleRequired
Initializes OLE on the current thread.
OnThreadException
Raises the
ThreadException
event.
RaiseIdle
Raises the
Idle
event in hosted scenarios.
RegisterMessageLoop
Registers a callback for checking whether the message loop is running in hosted environments.
RemoveMessageFilter
Removes a message filter from the message pump of the application.
Restart
Shuts down the application and starts a new instance immediately.
Run
()
()
()
Begins running a standard application message loop on the current thread, without a form.
Run(ApplicationContext)
Begins running a standard application message loop on the current thread, with an
ApplicationContext
.
Run(Form)
Begins running a standard application message loop on the current thread, and makes the specified form visible.
SetCompatibleTextRenderingDefault
Sets the application-wide default for the
UseCompatibleTextRendering
property defined on certain controls.
SetSuspendState
Suspends or hibernates the system, or requests that the system be suspended or hibernated.
SetUnhandledExceptionMode(UnhandledExceptionMode)
Instructs the application how to respond to unhandled exceptions.
SetUnhandledExceptionMode(UnhandledExceptionMode, Boolean)
Instructs the application how to respond to unhandled exceptions, optionally applying thread-specific behavior.
ToString
Returns a string that represents the current object.
(Inherited from
Object
.)
UnregisterMessageLoop
Unregisters the message loop callback made with
RegisterMessageLoop
.
Top
See Also
Reference
Application Class
System.Windows.Forms Namespace
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2012 Microsoft. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement