WindowsFormsApplicationBase.OnInitialize Method

Note: This method is new in the .NET Framework version 2.0.

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.

Namespace: Microsoft.VisualBasic.ApplicationServices
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

protected virtual bool OnInitialize (
	ReadOnlyCollection<string> commandLineArgs
)
protected boolean OnInitialize (
	ReadOnlyCollection<String> commandLineArgs
)
protected function OnInitialize (
	commandLineArgs : ReadOnlyCollection<String>
) : boolean

Parameters

commandLineArgs

A ReadOnlyCollection of String, containing the command-line arguments as strings for the current application.

Return Value

A Boolean indicating if application startup should continue.

By default, this method sets the visual styles, text display styles, and current principal for the main application thread (if the application uses Windows authentication), and calls ShowSplashScreen if neither /nosplash nor -nosplash is used as a command-line argument.

This method calls the following methods:

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: