Entry
Visual Basic .net: Form: Initialize: How to initialize variables before your form is created?
Dec 22nd, 2003 14:14
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 22 December 2003 - 11:13 pm -------------------
Visual Basic .net: Form: Initialize: How to initialize variables
before your form is created?
---
In Visual Basic .NET, initialization code must be added to the form
constructor (Sub New()) after the call to InitializeComponent() as in
the following example:
---
---
Public Sub New()
MyBase.New()
' This call is required by the Windows Forms Designer.
InitializeComponent()
' Add your initialization code here.
' do something
End Sub
---
[help: source: program: Microsoft Visual Studio: search for 'form
event changes']
----------------------------------------------------------------------