Component vs. Control

后端 未结 4 984
一生所求
一生所求 2021-02-20 08:46

In the world of WinForms .Net controls

What is the difference between Component and Control?

  • Can a Control contains any Component?
  • Can a Compone
4条回答
  •  余生分开走
    2021-02-20 09:51

    A component is basically a class (it can be a dll, Activex Object).

    • It does not have User Interface capabilities that's why you cannot see a visual representation.
    • It is portable and not specific to any language.

    While on the other hand control is component which provides User Interface capabilities.

    • Since control has UI, you can see its visual representation.
    • It is language specific and not portable.

提交回复
热议问题