473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

class and component class

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
Sep 25 '06 #1
4 1337
"Jon Vaughan" <jo**********@hotmail.comschrieb:
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/>

Sep 25 '06 #2

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:eD**************@TK2MSFTNGP06.phx.gbl...
"Jon Vaughan" <jo**********@hotmail.comschrieb:
>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
Sep 25 '06 #3
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 ?
"Mythran" <ki********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:eD**************@TK2MSFTNGP06.phx.gbl...
>"Jon Vaughan" <jo**********@hotmail.comschrieb:
>>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


Sep 26 '06 #4
"Jon Vaughan" <jo**********@hotmail.comschrieb:
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/>

Sep 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: orangepic333 | last post by:
Could someone tell me what's the difference between the two? Is it that a class is used within an OO language while a component can be exported between OO languages? Are there other...
2
by: Marcin Grzębski | last post by:
Hi All, How to create *component* class which do now show its instance in a component bar? I want to create other class, this *component* instance collection and i know how to show that...
6
by: ryan.d.rembaum | last post by:
Hello, I have code that I wish to use in many web applications. Basically sort of stand utility stuff. So from Visual Studio Project I select add a component and chose Component Class. Lets...
1
by: Jim | last post by:
Have fully operational software package developed on VB.NET that worked until Jan 1 2003, with early stage deployments on Oct 10, Oct 23, Nov 11, Dec 12 and Dec 30. When attempted final...
8
by: John Granade | last post by:
I'm sure this has been asked but after searching the Internet, I just can find a clear answer. When should you add a component versus a class to you Windows Forms application? The timer is a...
3
by: Dan Holmes | last post by:
If i have Class2 that is inherited by Class1, how can Class1's methods operate on Class2's assembly information? For instance: public class Component { public virtual List<ComponentInfo>...
7
by: tshad | last post by:
I have a problem with a VS 2003 project. This project was designed and works fine in VS 2003. But trying to open the project I get the following error....
1
by: gary.bernstein | last post by:
Any idea why line 57 fails? http://rafb.net/p/86JdGg61.html gs = MyShutdown<Component, T1, T2, T3>(this); Errors: shutdown1.cpp: In constructor `Component<T1, T2, T3>::Component(int)':...
2
by: =?Utf-8?B?Y2xhcmE=?= | last post by:
Hi all, What is the difference between adding a component or a class to a project? In Toolbox, there is a component section, how can be a component added to there? Clara -- thank you so...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.