Print Page | Close Window

[SOLVED]How to stop VB6 to update controls

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17535
Printed Date: 24 November 2024 at 2:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED]How to stop VB6 to update controls
Posted By: Fabian
Subject: [SOLVED]How to stop VB6 to update controls
Date Posted: 07 November 2010 at 5:18am
Hi all
 
VB6 automatically converts a project to all new versions of controls (e.g. 13.4 to 15.0). Thats fine, but in rare cases I would stay with the my older components. How can I prevent this.
 
I know there must be a key word for the VBP file but I can't remember and I dont't found some help elsewhere.
 
Any help is welcome!
Thanks in advance
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



Replies:
Posted By: gibra
Date Posted: 07 November 2010 at 6:35am
1. Open your project
2. in Project Explorer window (CTRL+R): RIGHT click over the project name
(this open the Project Properties dialog)
3. Uncheck Update ActiveX controls option
 
Unfortunately, to do this, you need to open the project, therefore the project is automatically updated before to change the option! LOL
 
However, you can avoid this by editing the VBP file as below:
1. Open VBP file using Notepad
2. Search the line which start with:
HelpFile=
3. After this line add a new line and enter this string:
NoControlUpgrade=1
 
4. Save file. Done
 
Take present that if Updated ActiveX controls is checked (True), this line is missing.
The line
NoControlUpgrade=1
appears ONLY when option is UnChecked.
 
Smile


-------------
gibra
CJ SuiteControl v: 13.x to 19.x
Windows 10 64bit
VS2019 - VB6.0 SP6
<a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8


Posted By: Fabian
Date Posted: 07 November 2010 at 6:40am
Hi gibra
 
Exactly - that was it Clap
 
Many thanks
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: juma
Date Posted: 24 March 2011 at 8:22pm
by mistake i upgraded my ocxs to the new version, and now i want to downgrade them to a lesser version to resolve an incident for a client of mine. how can i do that? do i have to open each frm file and manually change the version number?

-------------
Product: Xtreme SuitePro (ActiveX) version 13.4.1
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0


Posted By: gibra
Date Posted: 18 April 2011 at 9:44am
Originally posted by juma juma wrote:

by mistake i upgraded my ocxs to the new version, and now i want to downgrade them to a lesser version to resolve an incident for a client of mine. how can i do that? do i have to open each frm file and manually change the version number?
 
You must:
 
1) open in Notepad a VBP project file where previous OCX version was used.
2) take note of the line where OCX is referenced, like the below:
Object={A8E5842E-102B-4289-9D57-3B3F5B5E15D3}#15.0#0; CODEJO~4.OCX
 
3) open in Notepad each FRM file where previous OCX version was used.
4) take note of the line (on top) where OCX is referenced, like the below:
Object = "{A8E5842E-102B-4289-9D57-3B3F5B5E15D3}#15.0#0"; "CODEJO~4.OCX"
 
Warning!!! The two strings AREN'T equal.
Please note the double quote ("") on the 2nd.
 
5) last, always in Notepad, replace the existing reference in yours VBP and FRM files of the project to move back to previous version.
 
Good work. LOL
 
 


-------------
gibra
CJ SuiteControl v: 13.x to 19.x
Windows 10 64bit
VS2019 - VB6.0 SP6
<a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8


Posted By: juma
Date Posted: 18 April 2011 at 5:09pm
Excellent, I'll try that and see how it goes ...

-------------
Product: Xtreme SuitePro (ActiveX) version 13.4.1
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0



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