Newbie question.....modules, classes!!!!!

  • Thread starter Thread starter Avni
  • Start date Start date
A

Avni

hi,

im new to vb.net and i just wanted to know what the
purpose of the module and class are. I can see that i can
add either of these too my project but i have been told
they they do not function in the same way as the old vb.
In the old VB i used the module to hold all the common
code i wanted to use throughout my application so i could
simply call it from anywhere in my appliocation. does it
serve the same function in .NET??


Any help would be grateful.
 
MOdules work the same way in .NET, although they are effectively a sealed
class with all shared properties and functions. Functionally, they are the
same as in VB6.

However, the purpose of a class is beyoned what I can post in a NG..it's at
the heart of OOP and fundamental to everything you develop in .NET.

If you are going to do much in .NET, I'd really advise taking a step back
and learning a little more about Objects.....VB.NET is vastly different
from VB6 even though the syntax looks the same.

HTH,

Bill
 
Back
Top