Class Is Not Licensed for Use Error With ActiveX Controls

Updated Jun 8, 2023

Reported In

Software

  • LabVIEW
  • Microsoft Visual Studio

Issue Details

I'm trying to use the ActiveX object Microsoft TreeView Control with an ActiveX Container, but when I open LabVIEW there is an error:
Control could not be loaded

Then, if I press "Insert ActiveX object..." I get this error:

Error inserting ActiveX or .NET object: Class is not licensed for use

Solution

To use this control and any other of the same library, you need to have a Microsoft developer license. If you have products like Visual Basic or Visual Studio installed and licensed on your PC, you will be able to include this object in the ActiveX container.
 

Additional Information

This error can appear while trying to include any of the Microsoft VB 6.0 Common Controls. These controls are: 
  • Microsoft ListView Control
  • Microsoft ImageList Control
  • Microsoft TreeView Control
  • Microsoft Toolbar Control