Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are controls components?

Just terminology question. Some articles mention that things like Button, Panel, SplitPanel, etc. are controls. Some called components. Is Both correct?

like image 687
lojol Avatar asked Jul 21 '26 22:07

lojol


1 Answers

I think you're talking not about Visual Studio, but .NET.

System.Windows.Forms.Control class signature:

public class Control : Component, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable

System.ComponentModel.Component class signature:

public class Component : MarshalByRefObject, IComponent, IDisposable

Thus, a Control is a Component.

like image 189
abatishchev Avatar answered Jul 23 '26 12:07

abatishchev