ProgID for Controls.Add at Runtime |
Post Reply |
Author | |
ThomasB
Newbie Joined: 06 January 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
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
|
|
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 |