In my VB project we use MSCOMCTL.OCX of version 6.1.97.86 and in the vbp file reference will be like
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; mscomctl.ocx
When this project is opened in windows 8 or pc having MSCOMCTL.OCX of version 6.1.98.34 the vbp file upgrades to Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; mscomctl.ocx
Now when this project(having 2.1) opened in pc having old OCX file error comes as MSCOMCTL.OCX could not be loaded.
The solution was to edit the vbp file and change 2.1 to 2.0 and open the project. It will solve the problem. But i want to disable the upgradation of these ocx files.In so many forums this was discussed before and to add NoControlUpgrade=1
to vbp file as mentioned here
I tried the same but it didn't work.Even after adding NoControlUpgrade=1(also verified that Updated ActiveX controls is unchecked) the projects gets upgraded when opening in pc having new ocx version and vbp file changes to Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; mscomctl.ocx
So why this solution not working? Is there any other solution for the automatic upgrade? Please help me on this
EDIT:
Below is the complete vbp file which has the problem
Type=Exe
Form=Form1.frm
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINDOWS\system32\STDOLE2.TLB#OLE Automation
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; mscomctl.ocx
IconForm="Form1"
Startup="Form1"
HelpFile=""
NoControlUpgrade=1
Command32=""
Name="Project1"
HelpContextID="0"
CompatibleMode="0"
MajorVer=1
MinorVer=0
RevisionVer=0
AutoIncrementVer=0
ServerSupportFiles=0
CompilationType=0
OptimizationType=0
FavorPentiumPro(tm)=0
CodeViewDebugInfo=0
NoAliasing=0
BoundsCheck=0
OverflowCheck=0
FlPointCheck=0
FDIVCheck=0
UnroundedFP=0
StartMode=0
Unattended=0
Retained=0
ThreadPerObject=0
MaxNumberOfThreads=1
[MS Transaction Server]
AutoRefresh=1