Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - ProgID for Controls.Add at Runtime
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ProgID for Controls.Add at Runtime

 Post Reply Post Reply
Author
Message
ThomasB View Drop Down
Newbie
Newbie


Joined: 06 January 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ThomasB Quote  Post ReplyReply Direct Link To This Post Topic: ProgID for Controls.Add at Runtime
    Posted: 10 April 2012 at 1:50pm

I am trying to add the label controls at runtime with the following line:

Controls.Add "XtremeSuiteControls.Label", "lblLabelName1"

I am getting a "Not a legal object name" error when the code is ran.

The following line to add a VB label works fine.

Controls.Add "VB.Label", "lblLabelName1"

So the problem seems to be "XtremeSuiteControls.Label" is not the correct name for the ProgID. I tried several variation of the name. I also tried to get the ProgID by putting a Xtreme Suite Controls Label on a form naming it lblLabelName and opening the form file in notepad and found the line:

Begin XtremeSuiteControls.Label lblLabelName

What should the name of the Xtreme Suite Controls Label be?

Thanks
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.109 seconds.