.NET Class WinForms Control

Are all windows and controls (including active-x) installed inside the WinForms application from the System.Windows.Forms.Control class?

+3
source share
2 answers

I guess, yes.

However, non-visual components, such as timers, are produced from Component (or implement IComponent). Only visual elements, such as Button and Form, are inferred from Control.

, ActiveX , COM; , ActiveX, Visual Studio , AxHost COM-. ( AxHost Control.)

+4

,

http://msdn.microsoft.com/en-us/library/aa651811(VS.71).aspx

System..::. Object

System..::. MarshalByRefObject

System.ComponentModel..::.Component

 System.Windows.Forms..::.Control

   System.Windows.Forms..::.AxHost

   System.Windows.Forms..::.ButtonBase

   System.Windows.Forms..::.DataGrid

   System.Windows.Forms..::.DataGridView

   System.Windows.Forms..::.DateTimePicker

   System.Windows.Forms..::.GroupBox

   System.Windows.Forms.Integration..::.ElementHost

   System.Windows.Forms..::.Label

   System.Windows.Forms..::.ListControl

   System.Windows.Forms..::.ListView

   System.Windows.Forms..::.MdiClient

   System.Windows.Forms..::.MonthCalendar

   System.Windows.Forms..::.PictureBox

   System.Windows.Forms..::.PrintPreviewControl

   System.Windows.Forms..::.ProgressBar

   System.Windows.Forms..::.ScrollableControl

   System.Windows.Forms..::.ScrollBar

   System.Windows.Forms..::.Splitter

   System.Windows.Forms..::.StatusBar

   System.Windows.Forms..::.TabControl

   System.Windows.Forms..::.TextBoxBase

   System.Windows.Forms..::.ToolBar

   System.Windows.Forms..::.TrackBar

   System.Windows.Forms..::.TreeView

   System.Windows.Forms..::.WebBrowserBase
0

Source: https://habr.com/ru/post/1735700/


All Articles