Components and clases

  • Thread starter Thread starter JohnFol
  • Start date Start date
J

JohnFol

I'm an experienced VB guy, and have been using VB.Net for a while. I've just
done a few of the walkthroughs and created a Component. Seems to me a
component is very similar to a class.

Can someone tell me what the differences are, and when would I choose one
over the other?
 
John,

A conponent as well a class, a component is a very high base class, from
which by instance "control" and "data" inherits. This means that there are a
lot of things which are implemented in components are all in the derived
classes as well, by instance idisposable.

When you use a component Item in VSNet you get as well a nice design grid on
which you can drag when you want that all kind of components by instance
controls however also the dataadapterwizard and a nice class code to add
things too.

I hope this helps?

Cor
 
So it sounds like you get access to the designer, and cuts down on tons of
code to create thinsg like data adapters etc.
Cor, many thanks for the prompt respose.
 
¤ I'm an experienced VB guy, and have been using VB.Net for a while. I've just
¤ done a few of the walkthroughs and created a Component. Seems to me a
¤ component is very similar to a class.
¤
¤ Can someone tell me what the differences are, and when would I choose one
¤ over the other?
¤

Component is a rather generic term. It's essentially functionally related code, which may consist of
one or more discreet classes, that is both logically and physically separate from code that does not
pertain to it's functionality. It is typically represented as a DLL library or assembly, Windows
control, Web control, Class library, etc.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top