PC Review


Reply
Thread Tools Rate Thread

Component and container

 
 
Edward Diener
Guest
Posts: n/a
 
      20th Feb 2004
In the Writing Components topic of Mr. Grimes' book on Managed C++, he
states that if a component is ultimately derived from either
MarshalByRefObject or MarshalByValueComponent, it should implement a second
constructor which takes an IContainer in order to add itself to a component
container. I have a few questions regarding this:

1) What container creates a component calling this second constructor ?
2) Why does MarshalByRefObject or MarshalByValueComponent not have this
second constructor which would automatically add itself to an IContainer
derived object when a derived class calls down to one of these bases ?
3) Where in the MSDN documentation is this second constructor documented ?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reference to the owner or container of a component? M Shafaat Microsoft C# .NET 2 4th Apr 2005 05:06 PM
component detect key press for container Lance Johnson Microsoft Dot NET Framework Forms 0 18th Nov 2004 08:17 PM
Component and Container Edward Diener Microsoft Dot NET Framework 0 21st Feb 2004 04:38 AM
Make Container UserControl force controls to be added to a child container control Codemonkey Microsoft Dot NET Framework Forms 2 21st Nov 2003 08:22 PM
Designers for System.ComponentModel.Component do not always Add to parent Container Mark Cranness Microsoft Dot NET Framework 0 15th Sep 2003 11:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:22 PM.