Adding Commandbar dynamically |
Post Reply |
Author | |
iamgtd
Senior Member Joined: 25 February 2009 Status: Offline Points: 131 |
Post Options
Thanks(0)
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# --------- |
|
Hemesh
Senior Member Joined: 10 August 2010 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
We had some similar issue when using CreateObject in a component which came back at runtime with a licence issue...
|
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
iamgtd
Senior Member Joined: 25 February 2009 Status: Offline Points: 131 |
Post Options
Thanks(0)
|
Try the Licenses.Add Controltype, LicenseKey method.
Further informations: 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# --------- |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |