When we want to declare global variable that can see everywhere in the project in VB6, we use Module to do this. What I have to use if I want to do like this in VB .Net?
Thank you,
Printable View
When we want to declare global variable that can see everywhere in the project in VB6, we use Module to do this. What I have to use if I want to do like this in VB .Net?
Thank you,
you can still use a module
and you can also use this in class file :
VB Code:
Public Shared variabl As String
Modules are shared by default - and actually get converted to a class when compiled. Either way works just fine.