Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Adding Commandbar dynamically
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding Commandbar dynamically

 Post Reply Post Reply
Author
Message
iamgtd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 February 2009
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote iamgtd Quote  Post ReplyReply Direct Link To This Post Topic: Adding Commandbar dynamically
    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#

---------
Back to Top
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
iamgtd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 February 2009
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote iamgtd Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2010 at 6:39am
Try the Licenses.Add Controltype, LicenseKey method.
 
 
---------

OS: Win 10 64 bit

Codejock Version 22.1 ActiveX

MS Visual Studio 2022 - C#

---------
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.