class and component class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Vaughan

    #1

    class and component class

    Whats the difference between a class and a component class , they seem to
    have identical structures, but different icons ?
    and when would I use a component class over a a class ?

    Thanks


  • Herfried K. Wagner [MVP]

    #2
    Re: class and component class

    "Jon Vaughan" <jonnyvaughan@h otmail.comschri eb:
    Whats the difference between a class and a component class , they seem to
    have identical structures, but different icons ?
    and when would I use a component class over a a class ?
    Component classes inherit from 'System.Compone ntModel.Compone nt'. They can
    be placed on forms, for example and are shown in the component tray at
    design time.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • Mythran

      #3
      Re: class and component class


      "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atwrot e in message
      news:eDG53xO4GH A.2596@TK2MSFTN GP06.phx.gbl...
      "Jon Vaughan" <jonnyvaughan@h otmail.comschri eb:
      >Whats the difference between a class and a component class , they seem to
      >have identical structures, but different icons ?
      >and when would I use a component class over a a class ?
      >
      Component classes inherit from 'System.Compone ntModel.Compone nt'. They
      can be placed on forms, for example and are shown in the component tray at
      design time.
      >
      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
      An example of a component would be the OpenFileDialog and SaveFileDialog.
      Both of these, as far as I can remember, are components. They are
      associated with a form, but are not a user-interactable control located on
      the parent form.

      HTH,
      Mythran


      Comment

      • Jon Vaughan

        #4
        Re: class and component class

        When selecting a simple dist enterprise template , the data tier has a
        default class that is a component class , why would this be ? is you arent
        going to drop it on a form ?


        "Mythran" <kip_potter@hot mail.comwrote in message
        news:%23vDkw7P4 GHA.3444@TK2MSF TNGP02.phx.gbl. ..
        >
        "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atwrot e in message
        news:eDG53xO4GH A.2596@TK2MSFTN GP06.phx.gbl...
        >"Jon Vaughan" <jonnyvaughan@h otmail.comschri eb:
        >>Whats the difference between a class and a component class , they seem
        >>to have identical structures, but different icons ?
        >>and when would I use a component class over a a class ?
        >>
        >Component classes inherit from 'System.Compone ntModel.Compone nt'. They
        >can be placed on forms, for example and are shown in the component tray
        >at design time.
        >>
        >--
        >M S Herfried K. Wagner
        >M V P <URL:http://dotnet.mvps.org/>
        >V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
        >
        An example of a component would be the OpenFileDialog and SaveFileDialog.
        Both of these, as far as I can remember, are components. They are
        associated with a form, but are not a user-interactable control located on
        the parent form.
        >
        HTH,
        Mythran
        >
        >

        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: class and component class

          "Jon Vaughan" <jonnyvaughan@h otmail.comschri eb:
          When selecting a simple dist enterprise template , the data tier has a
          default class that is a component class , why would this be ? is you arent
          going to drop it on a form ?
          If it's shown in the designer's component tray, then yes, it's a component
          class.

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

          Comment

          Working...