Hi guys i'm just having a question in my mind why do we use New keyword when declaring a variable.
I read about the new keyword but i think i need a better understanding about that keyword. I already now that it will create an instance of the class
Why do we need to use New keyword in some of a object type variable.
also what is the difference with this
Sorry for the noob question but i want to clarify my understandingCode:Dim Button1 As System.Windows.Forms.Button Dim Button2 As New System.Windows.Forms.Button()
Thanks




Reply With Quote