Export (0) Print
Expand All

WindowsFormsApplicationBase Members

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

The WindowsFormsApplicationBase type exposes the following members.

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

  NameDescription
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 Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (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.
Public method Run Sets up and starts the Visual Basic Application model.
Protected method ShowSplashScreen Determines if the application has a splash screen defined, and if it does, displays it.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
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.)
Protected property EnableVisualStyles Determines whether this application will use the XP Windows styles for windows, controls, and so on.
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.)
Protected property InternalCommandLine Sets the values to use as the current application's command-line arguments. (Inherited from ConsoleApplicationBase.)
Public property IsNetworkDeployed Gets a Boolean that represents whether the application was deployed from a network using ClickOnce. (Inherited from ConsoleApplicationBase.)
Protected property IsSingleInstance Determines whether this application is a single-instance application.
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.)
Protected property MainForm Gets or sets the main form for this application.
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.
Protected property ShutdownStyle Determines what happens when the application's main form closes.
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.)
Protected property Static member UseCompatibleTextRendering When overridden in a derived class, this property allows a designer to specify the default text rendering engine for the application's forms.
Top

  NameDescription
Public event NetworkAvailabilityChanged Occurs when the network availability changes.
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.
Public event UnhandledException Occurs when the application encounters an unhandled exception.
Top

Community Additions

ADD
Show:
© 2015 Microsoft