Component and Class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Y2xhcmE=?=

    Component and Class

    Hi all,

    What is the difference between adding a component or a class to a project?
    In Toolbox, there is a component section, how can be a component added to
    there?

    Clara
    --
    thank you so much for your help
  • kimiraikkonen

    #2
    Re: Component and Class

    On Jul 9, 10:12 pm, clara <cl...@discussi ons.microsoft.c omwrote:
    Hi all,
    >
    What is the difference between adding a component or a class to a project?




    In Toolbox, there is a component section, how can be a component added to
    there?
    To add an component, right click on toolbox -Choose Items -Check a
    component from .NET or COM tab then click OK. It should be added if
    it's .a vaid NET or COM component.

    Thanks,

    Onur Güzel




    Comment

    • Phill W.

      #3
      Re: Component and Class

      clara wrote:
      What is the difference between adding a component or a class to a project?
      A Class is primarily just a bundle of code.

      A Component is a kind of Class.
      A /Control/ is a kind of Class.

      In this case, the important difference is between Component and Control.

      A /Control/ can be seen by the user; a /Component/ cannot.

      For Example:
      Controls: TextBox, RadioButton, Label
      All things the user can /see/.

      Components: Timer, TooltipProvider , MainMenu
      You might see the /effect/ of one of these, or another Control that
      hangs off of them, but you can't actually get to see one on its own.
      In Toolbox, there is a component section, how can be a component added to
      there?
      To create a Component, create a class that inherits from
      System.Componen tModel.Componen t.

      To add it into (/any/ section in) the ToolBox, right-click inside that
      section and select Add/Remove.

      HTH,
      Phill W.

      Comment

      Working...