Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - [SOLVED]How to stop VB6 to update controls
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED]How to stop VB6 to update controls

 Post Reply Post Reply
Author
Message
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED]How to stop VB6 to update controls
    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
Back to Top
gibra View Drop Down
Senior Member
Senior Member


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
juma View Drop Down
Groupie
Groupie


Joined: 06 March 2011
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote juma Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gibra View Drop Down
Senior Member
Senior Member


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
juma View Drop Down
Groupie
Groupie


Joined: 06 March 2011
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote juma Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.