471,354 Members | 2,060 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Component or Class

When you go to the Add New Item Dialog box in VB.Net, you're given the option
of adding a Class or a Component Class.

Exactly when should you use each of them?
Jul 21 '05 #1
2 1045
John,

The component is a kind of wizard as the form is. It creates a class that
inherits from Components. The Idisposable part is created and you get a
grid, on which you can drag components as dataadapterwizard, dataset etc.

A class is complete empty.

So when you want to use those components as datagrid with the designer, than
you can use the component. As well it is usefull when you want to add
unmanaged resources to your class.

I hope this helps,

Cor
Jul 21 '05 #2
On Wed, 6 Apr 2005 13:41:50 +0200, "Cor Ligthert" <no************@planet.nl>
wrote:
John,

The component is a kind of wizard as the form is. It creates a class that
inherits from Components. The Idisposable part is created and you get a
grid, on which you can drag components as dataadapterwizard, dataset etc.

A class is complete empty.

So when you want to use those components as datagrid with the designer, than
you can use the component. As well it is usefull when you want to add
unmanaged resources to your class.

I hope this helps,

Cor


Thanks for the words Cor. I hadn't considered using a component for interfacing
with unmanaged dll's. That seems to me a good idea.
Otis Mukinfus
http://www.otismukinfus.com
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by orangepic333 | last post: by
2 posts views Thread by Edward Diener | last post: by
122 posts views Thread by Edward Diener No Spam | last post: by
7 posts views Thread by Joe | last post: by
reply views Thread by bharathreddy | last post: by
5 posts views Thread by Krice | last post: by

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.