class and component class

  • Thread starter Thread starter Jon Vaughan
  • Start date Start date
J

Jon Vaughan

Whats the difference between a class and a component class , they seem to
have identical structures, but different icons ?
and when would I use a component class over a a class ?

Thanks
 
Jon Vaughan said:
Whats the difference between a class and a component class , they seem to
have identical structures, but different icons ?
and when would I use a component class over a a class ?

Component classes inherit from 'System.ComponentModel.Component'. They can
be placed on forms, for example and are shown in the component tray at
design time.
 
Herfried K. Wagner said:
Component classes inherit from 'System.ComponentModel.Component'. They
can be placed on forms, for example and are shown in the component tray at
design time.

An example of a component would be the OpenFileDialog and SaveFileDialog.
Both of these, as far as I can remember, are components. They are
associated with a form, but are not a user-interactable control located on
the parent form.

HTH,
Mythran
 
When selecting a simple dist enterprise template , the data tier has a
default class that is a component class , why would this be ? is you arent
going to drop it on a form ?
 
Jon Vaughan said:
When selecting a simple dist enterprise template , the data tier has a
default class that is a component class , why would this be ? is you arent
going to drop it on a form ?

If it's shown in the designer's component tray, then yes, it's a component
class.
 
Back
Top