Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# - What is a component and how is it typically used?

Tags:

c#

components

What is a component class and where would I typically use one?

When I add a new item to my project in VS.NET 2008 one of the options is to add a component. I am not even sure I understand what a component is - but I would sure like to find out a bit more about them.

Could somebody explain them to me or perhaps point me towards an online tutorial that would help me.

like image 805
Brad Avatar asked Feb 07 '09 14:02

Brad


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is the full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr.

What is C in C language?

What is C? C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

Is C language easy?

C is a general-purpose language that most programmers learn before moving on to more complex languages. From Unix and Windows to Tic Tac Toe and Photoshop, several of the most commonly used applications today have been built on C. It is easy to learn because: A simple syntax with only 32 keywords.


2 Answers

Well, generally speaking, a component is any part of a thing. Specifically in .NET, a component is a class that implements the IComponent interface, which indicates that a class can interact with it's logical container.

More often than not, you see this in the form of design support, in that classes interact with their host in the designer, but that's not a strict requirement.

like image 104
casperOne Avatar answered Sep 29 '22 11:09

casperOne


Component Class is for sharing objects between applications.

Typically for dropping down object like outlook email to an application.

like image 34
belaz Avatar answered Sep 29 '22 11:09

belaz