This documentation is archived and is not being maintained.

WindowsFormsApplicationBase.OnInitialize Method

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
Not applicable.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: