WindowsFormsApplicationBase.OnCreateMainForm Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, allows a designer to emit code that configures the splash screen and main form.
protected:
virtual void OnCreateMainForm();
protected virtual void OnCreateMainForm ();
abstract member OnCreateMainForm : unit -> unit
override this.OnCreateMainForm : unit -> unit
Protected Overridable Sub OnCreateMainForm ()
Remarks
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.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για