none
How do I make an Interop User Control act as a container in VB6 (COM)? RRS feed

  • Question

  • I have a user control that works as a container in .Net.  When doing the project as an interop user control, everything works fine except that it is no longer a container.  Adding a new control just puts it in front of my interop control not in it.  I had to tweak things to get color and font properties to work so I am guessing that there are similar tweaks to expose the controls collection?  The interop control is in C# but if you can only give examples in VB, I'll take what I can get. Thanks.
    Wednesday, July 29, 2009 1:40 PM

Answers

  • .NET has no support for this.  The Controls collection doesn't mean anything to VB6.  The required ActiveX interfaces are not implemented.

    Hans Passant.
    • Marked as answer by CoreyG Thursday, July 30, 2009 12:43 PM
    Thursday, July 30, 2009 12:44 AM
    Moderator