Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OnInitialize Method

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)

'Declaration
<STAThreadAttribute> _
Protected Overridable Function OnInitialize ( _
	commandLineArgs As ReadOnlyCollection(Of String) _
) As Boolean

Parameters

commandLineArgs
Type: System.Collections.ObjectModel.ReadOnlyCollection(Of String)

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

Return Value

Type: System.Boolean
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:

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft