Export (0) Print
Expand All

WindowsFormsApplicationBase Members

Provides properties, methods, and events related to the current application.

The following tables list the members exposed by the WindowsFormsApplicationBase type.

  Name Description
Public method WindowsFormsApplicationBase Overloaded. Initializes a new instance of the WindowsFormsApplicationBase class.
Top

(see also Protected Properties )
  Name Description
Public property ApplicationContext Gets the ApplicationContext object for the current thread of a Windows Forms application.
Public property CommandLineArgs  Gets a collection containing the command-line arguments as strings for the current application.(Inherited from ConsoleApplicationBase.)
Public property Culture  Gets the culture that the current thread uses for string manipulation and string formatting.(Inherited from ApplicationBase.)
Public property Deployment  Gets the current application's ClickOnce deployment object, which provides support for updating the current deployment programmatically and support for the on-demand download of files.(Inherited from ConsoleApplicationBase.)
Public property Info  Gets an object that provides properties for getting information about the application's assembly, such as the version number, description, and so on. (Inherited from ApplicationBase.)
Public property IsNetworkDeployed  Gets a Boolean that represents whether the application was deployed from a network using ClickOnce.(Inherited from ConsoleApplicationBase.)
Public property Log  Gets an object that provides properties and methods for writing event and exception information to the application's log listeners. (Inherited from ApplicationBase.)
Public property MinimumSplashScreenDisplayTime Determines the minimum length of time, in milliseconds, for which the splash screen is displayed.
Public property OpenForms Gets a collection of all the application's open forms.
Public property SaveMySettingsOnExit Determines whether the application saves the user settings on exit.
Public property SplashScreen Gets or sets the splash screen for this application.
Public property UICulture  Gets the culture that the current thread uses for retrieving culture-specific resources.(Inherited from ApplicationBase.)
Top

  Name Description
Protected property EnableVisualStyles Determines whether this application will use the XP Windows styles for windows, controls, and so on.
Protected property InternalCommandLine  Sets the values to use as the current application's command-line arguments.(Inherited from ConsoleApplicationBase.)
Protected property IsSingleInstance Determines whether this application is a single-instance application.
Protected property MainForm Gets or sets the main form for this application.
Protected property ShutdownStyle Determines what happens when the application's main form closes.
Protected property Static UseCompatibleTextRendering Specifies the. When overridden in a derived class, this property allows a designer to specify the default text rendering engine for the application's forms.
Top

(see also Protected Methods )
  Name Description
Public method ChangeCulture  Changes the culture used by the current thread for string manipulation and for string formatting. (Inherited from ApplicationBase.)
Public method ChangeUICulture  Changes the culture that the current thread uses for retrieving culture-specific resources. (Inherited from ApplicationBase.)
Public method DoEvents Processes all Windows messages currently in the message queue.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetEnvironmentVariable  Returns the value of the specified environment variable. (Inherited from ApplicationBase.)
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Run Sets up and starts the Visual Basic Application model.
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method HideSplashScreen Hides the application's splash screen.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnCreateMainForm When overridden in a derived class, allows a designer to emit code that configures the splash screen and main form.
Protected method OnCreateSplashScreen When overridden in a derived class, allows a designer to emit code that initializes the splash screen.
Protected method OnInitialize Sets the visual styles, text display styles, and current principal for the main application thread (if the application uses Windows authentication), and initializes the splash screen, if defined.
Protected method OnRun Provides the starting point for when the main application is ready to start running, after the initialization is done.
Protected method OnShutdown When overridden in a derived class, allows for code to run when the application shuts down.
Protected method OnStartup When overridden in a derived class, allows for code to run when the application starts.
Protected method OnStartupNextInstance When overridden in a derived class, allows for code to run when a subsequent instance of a single-instance application starts.
Protected method OnUnhandledException When overridden in a derived class, allows for code to run when an unhandled exception occurs in the application.
Protected method ShowSplashScreen Determines if the application has a splash screen defined, and if it does, displays it.
Top

  Name Description
Public event Shutdown Occurs when the application shuts down.
Public event Startup Occurs when the application starts.
Public event StartupNextInstance Occurs when attempting to start a single-instance application and the application is already active.
Top

Community Additions

ADD
Show:
© 2014 Microsoft