Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 17th, 2010, 07:31 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default Container Control not working with Reg Free COM - Manifest File

Hi,

I am trying to create a Reg Free Deployment for my VB6 projects.

Issue:

I have a container control (User Control), example: MyCtrls.ContainerCtrl

I am trying to add another control in this.

'Code:
'Add Container control in User Control

Dim objParentCtrl As VBCont********************tender
Dim objChildCtrl As VBCont********************tender

Set objParentCtrl = UserControl.Controls.Add("MyCtrls.ContainerCtrl", "objParentCtrl", Me)

'Add Child control in Parent control
Set objChildCtrl = UserControl.Controls.Add("MyChilds.ChildCtrl", "objChildCtrl", objParentCtrl)

This statement generates a run-time error 721. Error message is 'ContainerCtrl' is not a valid control container

Funny thing is that it works well if I do not use Manifest files (using normal COM activation). Error is generated if I create Manifest file for MyCtrls component.

Any ideas how to fix this!!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't modify the manifest file per the book! Webtechie BOOK: Expert Access 2007 Programming ISBN 978-0-470-17402-9 8 February 22nd, 2013 05:19 PM
Chapter 11 - Undefined attributes in manifest.xml file dbaechtel BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 1 September 4th, 2009 07:50 AM
Getting a C# program with a manifest file to run i Bill_Thompson C# 2005 0 January 21st, 2008 06:27 PM
Is there a container control in VBA? sangeenobs Beginning VB 6 1 March 23rd, 2006 10:57 AM
Custom Container Control bmains .NET Framework 2.0 0 April 20th, 2005 02:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.