Print Page | Close Window

ProgID for Controls.Add at Runtime

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=19647
Printed Date: 02 July 2024 at 6:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ProgID for Controls.Add at Runtime
Posted By: ThomasB
Subject: ProgID for Controls.Add at Runtime
Date 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



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