Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Urgent simple question

Posted on 2004-04-26
6
Medium Priority
?
180 Views
Last Modified: 2010-04-24
hey guyz

What is the difference between a VB module and a VB class?

thnx
krtihi
0
Comment
Question by:krithi
4 Comments
 
LVL 28

Accepted Solution

by:
mmarinov earned 100 total points
ID: 10916885
0
 
LVL 5

Assisted Solution

by:tgannetts
tgannetts earned 100 total points
ID: 10917510
0
 
LVL 1

Expert Comment

by:warmach
ID: 10917955
Basically, a VB module is a place to put things you need that have a global scope, i.e. global variable and functions.  It is very similar to Bas Modules in VB6.  Classes are the meat and potatoes of .NET  These are the objects you are creating and manipulating.  Use classes when have a set of data and functions that are somehow related.  Use a Module as a place to store global application data/functions.
0
 

Expert Comment

by:kaps78
ID: 10924958
Classes are objects where the code is self contained. They usually do a specific job well and are designed to be easily reused without changing the code. The object needs to be properly created and qualified when used.

A module is a way to share variables, functions and procedures throughout an application. A way to use global scope.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question