Component classes, what's the idea?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Component classes, what's the idea?

  1. #1
    Mikael Guest

    Component classes, what's the idea?



    What's the idea behind Component Classes? When are they intended to be used
    and what's the benefits?

    How can you in the midle tier of a n-tiered remoting application use component
    classes, when remoting objects must be inherited from MarshalByRefObject,
    not from "System.ComponentModel.Component"?

    Thanks,
    Mikael


  2. #2
    Aaron Anderson Guest

    Re: Component classes, what's the idea?

    The idea behind System.ComponentModel.Component is to allow developers to
    easily create components that can interact with the Visual Studio IDE. If
    you don't care about dragging and dropping the component onto the designer,
    then just inherit from System.Object.

    "Mikael" <mjs@nospam.beamex.com> wrote in message
    news:3a8a6cff$1@news.devx.com...
    >
    >
    > What's the idea behind Component Classes? When are they intended to be

    used
    > and what's the benefits?
    >
    > How can you in the midle tier of a n-tiered remoting application use

    component
    > classes, when remoting objects must be inherited from MarshalByRefObject,
    > not from "System.ComponentModel.Component"?
    >
    > Thanks,
    > Mikael
    >




  3. #3
    Mikael Guest

    Re: Component classes, what's the idea?



    >> How can you in the midle tier of a n-tiered remoting application use

    >component
    >> classes, when remoting objects must be inherited from MarshalByRefObject,
    >> not from "System.ComponentModel.Component"?


    The solution to this problem seems to be the viritual class "ServicedComponent",
    which derives directly from "MarshalByRefObject".


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center