Behaviour difference Dim oDialog1 as Dialog1 = New Dialog1 VS Dim oDialog1 as Dialog1 = Dialog1
Posted
by
user472722
on Stack Overflow
See other posts from Stack Overflow
or by user472722
Published on 2010-10-11T22:12:41Z
Indexed on
2010/12/23
7:54 UTC
Read the original article
Hit count: 224
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?
© Stack Overflow or respective owner