To work around the license issue, see the Microsoft Knowledge Base article
LICREQST.EXE Requesting a License Key from an Object and download licreqst.exe. Run licreqst.exe and find "CWUIControlsLib.CWSlide.1" under the registered controls section and click on it. The license string at the top can be passed to Licenses.Add and then you should be able to dynamically create the Measurement Studio controls. For example:
Private Sub Form_Load()
Licenses.Add "CWUIControlsLib.CWSlide.1", "[Add license string from licreqst here]"
Dim slide
Set slide = Controls.Add("CWUIControlsLib.CWSlide.1", "slide")
With slide
.Top = 120
.Width = 1215
.Visible = True
End With
End Sub
Creating controls like this would have an impact on performance since all calls are late bound. If you are using the Measurement Studio controls in a UserControl, though, you should not need to do this since the license would get compiled into the binary that contains the control. I don't think that you would have any problems creating your control since it would not be licensed.
- Elton