Skip to Content
.NET Windows Forms in a Nutshell
book

.NET Windows Forms in a Nutshell

by Ian Griffiths, Matthew Adams
March 2003
Intermediate to advanced
896 pages
32h 35m
English
O'Reilly Media, Inc.
Content preview from .NET Windows Forms in a Nutshell

Name

Application

Synopsis

This class provides a variety of static methods to start message processing for a Windows Forms application, and to retrieve information about the execution environment of the current application, including such useful details as the shared and user data paths, registry keys, locale/culture settings, and others.

You can also get notifications of and some control over application startup and shutdown, although the exit notification is not signaled if you use the parameterless version of Run().

Finally, there is a facility to install and remove message filters for your application with AddMessageFilter() and RemoveMessageFilter(). See IMessageFilter for information on this feature.


public sealed class Application {

// Public Static Properties

   public static bool AllowQuit{get; }

   public static string CommonAppDataPath{get; }

   public static RegistryKey CommonAppDataRegistry{get; }

   public static string CompanyName{get; }

   public static CultureInfo CurrentCulture{set; get; }

   public static InputLanguage CurrentInputLanguage{set; get; }

   public static string ExecutablePath{get; }

   public static string LocalUserAppDataPath{get; }

   public static bool MessageLoop{get; }

   public static string ProductName{get; }

   public static string ProductVersion{get; }

   public static string SafeTopLevelCaptionFormat{set; get; }

   public static string StartupPath{get; }

   public static string UserAppDataPath{get; }

   public static RegistryKey UserAppDataRegistry{get; }

// Public Static Methods public ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt
Pro C# 7: With .NET and .NET Core

Pro C# 7: With .NET and .NET Core

Andrew Troelsen, Philip Japikse

Publisher Resources

ISBN: 0596003382Supplemental ContentCatalog PageErrata