471,356 Members | 1,632 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

Components and clases

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?
Jul 21 '05 #1
3 1044
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
Jul 21 '05 #2
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.


"Cor Ligthert" <no************@planet.nl> wrote in message
news:uc****************@TK2MSFTNGP09.phx.gbl...
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

Jul 21 '05 #3
On Tue, 25 Jan 2005 11:04:30 GMT, "JohnFol" <Ou************@WibbleObbble.Com> wrote:

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 ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.