[SOLVED]How to stop VB6 to update controls |
Post Reply |
Author | |
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
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 |
|
gibra
Senior Member Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
Post Options
Thanks(0)
|
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!
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.
|
|
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 |
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
Hi gibra
Exactly - that was it
Many thanks
Fabian
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
juma
Groupie Joined: 06 March 2011 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
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 |
|
gibra
Senior Member Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
Post Options
Thanks(0)
|
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.
|
|
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 |
|
juma
Groupie Joined: 06 March 2011 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |