Home All Groups Group Topic Archive Search About

class and component class

Author
25 Sep 2006 9:33 PM
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

Author
25 Sep 2006 9:49 PM
Herfried K. Wagner [MVP]
"Jon Vaughan" <jonnyvaug***@hotmail.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
26 Sep 2006 12:01 AM
Mythran
Show quote Hide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:eDG53xO4GHA.2596@TK2MSFTNGP06.phx.gbl...
> "Jon Vaughan" <jonnyvaug***@hotmail.com> schrieb:
>> 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.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

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
Author
26 Sep 2006 11:35 AM
Jon Vaughan
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 ?


Show quoteHide quote
"Mythran" <kip_pot***@hotmail.com> wrote in message
news:%23vDkw7P4GHA.3444@TK2MSFTNGP02.phx.gbl...
>
> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
> news:eDG53xO4GHA.2596@TK2MSFTNGP06.phx.gbl...
>> "Jon Vaughan" <jonnyvaug***@hotmail.com> schrieb:
>>> 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.
>>
>> --
>> M S   Herfried K. Wagner
>> M V P  <URL:http://dotnet.mvps.org/>
>> V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
>
> 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
>
>
Author
26 Sep 2006 11:54 AM
Herfried K. Wagner [MVP]
"Jon Vaughan" <jonnyvaug***@hotmail.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>