Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 17th, 2010, 07:31 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: India.
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!!!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:43 PM.


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