Export (0) Print
Expand All

WindowsFormsApplicationBase.OnCreateMainForm Method

When overridden in a derived class, allows a designer to emit code that configures the splash screen and main form.

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

protected virtual void OnCreateMainForm()

By default, this method does nothing. However, when you select a main form for your application in the Visual Basic Project Designer, the designer overrides this method with a method that sets the MainForm property to a new instance of the main form.

This method is called by the OnRun method.

.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