Behaviour difference Dim oDialog1 as Dialog1 = New Dialog1 VS Dim oDialog1 as Dialog1 = Dialog1
- by user472722
VB.Net 2005
I have a now closed Dialog1. To get information from the Dialog1 from within a module I need to use
Dim oDialog1 as Dialog1 = New Dialog1.
VB.Net 2008
I have a still open Dialog1. To get information from the Dialog1 from within a module I need to use
Dim oDialog1 as Dialog1 = Dialog1.
VB.Net 2005 does not compile using Dim oDialog1 as Dialog1 = Dialog1 and insists on NEW
What is going on and why do I need the different initialisation syntax?