Uninstall VB6 causes error message: You do not have a license to use this control

I was running out of disk space on one of my machines, so I used my TreeMap program to see where I could delete files to save space.


I saw that I still had VB6 on the machine, and I didn’t need it on that machine any more, so I uninstalled it.


It's amazing how little disk space VB6 occupied, compared to VB.Net! I remember when FoxPro came on floppy disks, and Turbo Pascal came on a single (360k ?) floppy disk!


The next year (actually only several days later <g>), I tried running my trusty picture viewer which allows me to query and show my pictures and movies to show them or thumbnails. I received an error message: "You do not have a license to use this control".


I thought that it must have been the movie player ActiveX control that was giving me the problem.


I started Visual Studio and attached to the process, and found that the error occurred when MSCOMCTL.OCX was being loaded. That triggered a memory that I had removed VB6 a while ago. I think the MSCommon controls, such as the TreeView, ListView, Slider, etc  originated from VB5, and Visual FoxPro and other products repackage them.


Upon further debugging, I found that it was actually the Slider control (which allows me to slide through almost 30,000 pictures/movies) that was giving the error.



            WITH thisform.oSlider


                  .width = 350







DEFINE CLASS cSlider as olecontrol


      PROCEDURE keypress(p1)


      PROCEDURE change








I just needed to find what registry keys needed to be added back, so the application would work again. I found this link, which worked perfectly:


You receive an error message "You do not have a license to use this control" when you use Visual Basic 6.0 controls in Visual Studio 2005 or in Visual Studio .NET




see also

Microsoft Visual Basic 6.0 Common Controls


Comments (2)
  1. John Koziol says:

    Ah, yes, I remember that cool TreeMap code. Rock on, Calvin!

Comments are closed.

Skip to main content