2010-03-06 6 views

Répondre

4

Fondamentalement oui. Toutefois, les composants non visuels, tels que les temporisateurs, sont dérivés de Component (ou IComponent d'implément). Seuls les éléments visuels tels que Button et Form sont dérivés de Control.

En outre, les contrôles ActiveX ne dérivent pas du contrôle en soi, car ils sont des composants COM; à la place, lorsque vous importez un contrôle ActiveX, Visual Studio génère un wrapper qui dérive d'AxHost et héberge l'objet COM. (AxHost lui-même ne dérive de Control.)

0

Je pense que vous devriez jeter un oeil à

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

Hiérarchie d'héritage

System .. ::. Object

système .. ::. 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 
Questions connexes