Print Page | Close Window

Adding Commandbar dynamically

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=17351
Printed Date: 06 October 2024 at 6:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding Commandbar dynamically
Posted By: iamgtd
Subject: Adding Commandbar dynamically
Date Posted: 30 September 2010 at 4:24am

In a VB6 project I want to add dynamically a commandbar to a form without having a reference to the codejockcommandbar activex control.

Here is my code:

oForm.Controls.Add "Codejock.CommandBars.13.4.0", "CommandBars1" --> an error occurs

This is the error:
err.Description = "Component not correctly registered"
err.Number = 336
 
Note: The ocx is correct registered, I have tested it on several machines.

If I'm adding the reference to the ocx the code works. But I need a solution without having a reference, please help me.


 



-------------
---------

OS: Win 10 64 bit

Codejock Version 22.1 ActiveX

MS Visual Studio 2022 - C#

---------



Replies:
Posted By: Hemesh
Date Posted: 01 October 2010 at 6:27am
We had some similar issue when using CreateObject in a component which came back at runtime with a licence issue... Cry


-------------
Product: Xtreme SuitePro (ActiveX) version 18.5.0

Platform: Windows 7 Enterprise (64-bit)

Language: Visual Basic 6.0


Posted By: iamgtd
Date Posted: 01 October 2010 at 6:39am
Try the Licenses.Add Controltype, LicenseKey method.
 
Further informations: http://visualbasic.freetutes.com/learn-vb6-advanced/lesson4/p40.html - http://visualbasic.freetutes.com/learn-vb6-advanced/lesson4/p40.html
 


-------------
---------

OS: Win 10 64 bit

Codejock Version 22.1 ActiveX

MS Visual Studio 2022 - C#

---------



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net