calvincrumrine
New member
I'm trying to learn VB.Net so I can modify an application for which we bought the source code.
Public Class Main Inherits System.Windows.Forms.Form
#Region "Variables"
Private Shared X as New XBase
Private Y as New YBase
#End Region
#Region "Windows Form Designer Generated Code"
Public Sub New()
MyBase.New()
In stepping thru the above execution goes from MyBase.New to Private Y as New YBase. Either MyBase.New does nothing (or at least nothing visible) or it's what is executing the variable declaration. In either case I don't understand why it skips the first declaration.
I'm confused.
Public Class Main Inherits System.Windows.Forms.Form
#Region "Variables"
Private Shared X as New XBase
Private Y as New YBase
#End Region
#Region "Windows Form Designer Generated Code"
Public Sub New()
MyBase.New()
In stepping thru the above execution goes from MyBase.New to Private Y as New YBase. Either MyBase.New does nothing (or at least nothing visible) or it's what is executing the variable declaration. In either case I don't understand why it skips the first declaration.
I'm confused.