-
VB6 Controls stopped working
No matter what I try, I can't register Sheridan and other controls in VB6. I get "not a loaded control class" when loading project. I get "file not found " when I try to add as component to project. The desired controls ARE in syswow64 and system32. I have tried many time to register using run as Admin from command prompt. Was working fine on Windows 7 for months. Works on my Xp virtual partition on same machine. May have started with uninstal/reinstall of Norton Interent Security. Have tried uninstalling/reinstalling VB6 several times. Also registered controls using vbcntrls.reg from disk 3 of Visual Studio as well as VB6CLI.EXE and vbusc.exe. They report succsessful registration but nothing works. Also, these controls were registered and working in the project before and just stopped working. VB6 Service Pack is installed. Exact messages in .log file for form is: Line 2722: Class Threed.SSPanel of control panParent was not a loaded control class and Line 2797: Class RichTextLib.RichTextBox of control RTBox was not a loaded control class. Message on attempt to load progect is "File not found, continue loading project?". Controls just will not register correctly.
-
Re: VB6 Controls stopped working
I'm wondering if you had any success in resolving this problem? It sounds like the same problem we started experiencing just this week.
-
Re: VB6 Controls stopped working
Quote:
Originally Posted by
KenBeccard
I'm wondering if you had any success in resolving this problem? It sounds like the same problem we started experiencing just this week.
Not at all. I've tried everything. I'm pretty sure it was caused by installing Norton Internet Security. I've gotten around it by using an Xp Virtual machine under Windows 7 Pro. Please let me know if you come up with anything ([email protected]).
Good luck!
-
Re: VB6 Controls stopped working
At the moment, what kind of OS do you use ?
-
Re: VB6 Controls stopped working
Windows 7 Pro with Xp Virtual machine. Got it to work on the VM by not using Norton there.
-
Re: VB6 Controls stopped working
Quote:
Originally Posted by
Daniel Duta
At the moment, what kind of OS do you use ?
We're using Windows 7 Pro. We have the same problem occuring in multiple machines. The other response on this thread regarding Norton may provide a clue. We'll look at that.
Thanks for your response.
-
Re: VB6 Controls stopped working
Thanks for your response. We'll look at the virus software based on your indication that Norton may be a problem. Up to this point, we were trying to figure out a direction to pursue.
-
Re: VB6 Controls stopped working
Are you able to use the vb6 native controls in the main form ? Do you have this issue on your PC from office or at home ?
-
Re: VB6 Controls stopped working
Home office. Most controls will load.
-
Re: VB6 Controls stopped working
Not at all. Got around it by using an Xp Virtual machine with no Norton.
-
Re: VB6 Controls stopped working
Are you, have you been running the vb6 IDE 'as administrator' (as recommended) if not that can do bad things to the Windows registry and cause vb6 to loose 'links' to its dependences in the IDE.
-
Re: VB6 Controls stopped working
Yes. I have tried everything. The controls were working fine for years. Stopped after a Norton Internet Security update applied in December 2012.
-
Re: VB6 Controls stopped working
Quote:
Originally Posted by
htsoftware
Yes. I have tried everything. The controls were working fine for years. Stopped after a Norton Internet Security update applied in December 2012.
Does VB6.0 work properly if you turn off Norton's?
Edit:
If so either go back to the virtual machine or use a different anti virus such as AVG.
-
Re: VB6 Controls stopped working
Quote:
Originally Posted by
htsoftware
Yes. I have tried everything. The controls were working fine for years. Stopped after a Norton Internet Security update applied in December 2012.
Hello,
Sorry for the trouble. That's odd! I am Vineeth and I am from the Norton Support team.
We are not aware of this problem and I would like to gather more information on this. Did you try using VB6.0 with the latest version of Norton Internet Security (21.1)? If not, please try that and let me know if it works!
Thanks!
Vineeth
Norton Support
-
Re: VB6 Controls stopped working
Have you recently applied updates for Win7 that installed IE10?
If so see this link with fix:
See http://www.vbforums.com/showthread.p...highlight=IE10
To fix run elevated (Admin) command prompt:
x64
---
cd C:\Windows\SysWOW64\
regtlib msdatsrc.tlb
x86
---
cd C:\Windows\System32\
regtlib msdatsrc.tlb
-
Re: VB6 Controls stopped working
Quote:
Originally Posted by
DrUnicode
Have you recently applied updates for Win7 that installed IE10?
If so see this link with fix:
See
http://www.vbforums.com/showthread.p...highlight=IE10
To fix run elevated (Admin) command prompt:
x64
---
cd C:\Windows\SysWOW64\
regtlib msdatsrc.tlb
x86
---
cd C:\Windows\System32\
regtlib msdatsrc.tlb
Thanks for the tip. This is the one that solved the problem for us.
-
Re: VB6 Controls stopped working
Finally after 11 months of searching and trying so many things! This worked for me. Thanks!
-
Re: VB6 Controls stopped working
I think this is relevant to this thread. I've use a scroll bars in my apps for many years - no problem. I'n my VB6 code I have referenced scrollbar.max and scroll.min properties, so these (max and min) must have been in the properties list at one time (long time ago, when I first built the app). But within the last two or three weeks, whenever I try to run the app in VB, whenever the code gets to a line that references scrollbar.max or scrollbar.min, it gives a VB error message: "Compile error: method or data member not found."
When look at the scroll bar properties list, there is no "max" or 'Min" values. I'm totally confused. Need help.
Stuff: Windows 7 Home Premium, 64 bit. VB 6 with SP 6. AVG. Norton was removed sometime ago. Just this afternoon, I reinstalled VB6/SP6, but to no avail.
Harold
-
Re: VB6 Controls stopped working
I see Min/Max here in Properties Window with VScrollBar and HScrollBar.
What may have happened is that vScrollBar and HScrollBar was replaced with a PictureBox at some point in time.
-
Re: VB6 Controls stopped working
No, they haven't been replaced with Picture Boxes. Can you tell me where (between what two items) in the Properties Window for VScrollBar and HScrollBar you see Min and Max.
Thanks
-
Re: VB6 Controls stopped working
Further thoughts to DrUnicode.
If the HScrollBar had've been replaced with a Picture Box, then if I tried to run the program, the entire text
"scrScrollBar.max" would have been flagged as "not found." But if only the property "max" has (myteriously) disappeared, only the property "max" would be flagged as "not found." Only "Max" was highlighted.
Harold
-
1 Attachment(s)
Re: VB6 Controls stopped working
Here is screenshot of Properties Window:
Attachment 106789
If your Properties Window is not showing VScrollBar then it may be a PictureBox and thus will not have Min/Max.
-
Re: VB6 Controls stopped working
I think you are right. It must have turned into a picture box. There are several property items associated with a scroll bar that do not show on my control properties window. In addition to Min and Max, there is Large Change, Small Change, and Value.
I think my problem started when I had an outsider work on my computer, and he arbitrarily deleted some things, evidently, including mscomctl2.ocx.
When I try to load a VB program, I receive an error message "Object Library not registered."
Then I receive an error message log with a series of messages "The property name ... in scrollbar scrTuneParam is in valid." (The ... refers to a number of scroll bar properties.
I also receive an error message log with the message "Class mscomctl2 FlatScrollBar of scrTuneParams was not loaded as a class."
It is my understanding that I should be able to download mscomctl2.ocx for free from the Microsoft website, but so far I have not found it. I find discussion of how to register mscomctl.ocx and comctl2.ocx, both of which are on my machine, but not mscomctl2.ocx.
Harold
-
Re: VB6 Controls stopped working
MSCOMCT2.OCX should be present as it is part of the Vb6 install.
It may be present but you cannot instantiate it on Win7 after IE10 install.
If that is the case try the solution above registering msdatsrc.tlb.
You can download MSCOMCT2.OCX here:
http://support.microsoft.com/kb/297381
http://activex.microsoft.com/controls/vb6/mscomct2.cab
It is a CAB file but you can open it with WinZip.
Update:
"Object Library not registered." is exactly the error that is fixed by "regtlib msdatsrc.tlb" mentioned in
http://www.vbforums.com/showthread.p...=1#post4546015
After fixing this, you will need to delete the PictureBox and instantiate your FlatScrollBar scrTuneParams again.
Actually, if you have the original source (i.e. before ScrollBar was replaced by PictureBox) it should start working again.
-
Re: VB6 Controls stopped working
Quote:
Originally Posted by
DrUnicode
fixed by "regtlib msdatsrc.tlb"
Maybe it might be useful to know/learn how to register a tlb file programatically.
-
Re: VB6 Controls stopped working
-
Re: VB6 Controls stopped working
Quote:
Originally Posted by
DrUnicode
Have you recently applied updates for Win7 that installed IE10?
If so see this link with fix:
See
http://www.vbforums.com/showthread.p...highlight=IE10
To fix run elevated (Admin) command prompt:
x64
---
cd C:\Windows\SysWOW64\
regtlib msdatsrc.tlb
x86
---
cd C:\Windows\System32\
regtlib msdatsrc.tlb
Thanks a lot. This fixed me problem with the updown control (in mscomct2.ocx) which suddenly stopped working recently (I guess due to some automatic update). Nothing to do with Norton I guess as I never had it on my laptop.
-
Re: VB6 Controls stopped working
Using regtlib msdatsrc.tlb also fixed a problem I ran into with the daylight saving time change this month. A simple program I wrote uses a Rich Text Box and I was getting a File Not Found error when I loaded the project. I discovered if I changed the system date back to before the time change, the project would load normally. Running regtlib msdatsrc.tlb has fixed the problem.
Thanks.
-
Re: VB6 Controls stopped working
I am having the same problem with File not found when I try to load the MS Common Controls 2.6.0 (SP6) mscomct2.ocx
I tried the Regtlib but receive that warning the command is NOT recognized
-
Re: VB6 Controls stopped working
I am not sure what your problem might be. I just followed the example that YianPap gave. The one I used was C:\Windows\System32\regtlib msdatsrc.tlb.
I just consider myself lucky that it worked for me. It was getting tedious to keep changing the system date just so VB would load my project.
-
Re: VB6 Controls stopped working
Thank you. This fix worked for me. When opening my projects in the VB6 IDE I was getting "file not found" without additional information. After running this command, I can work with my projects in the VB6 IDE. I suspect that there might have been problems with specific files (maybe Sheridan controls), but the diagnostic did not refer to a file.
Quote:
Originally Posted by
DrUnicode
Have you recently applied updates for Win7 that installed IE10?
If so see this link with fix:
See
http://www.vbforums.com/showthread.p...highlight=IE10
To fix run elevated (Admin) command prompt:
x64
---
cd C:\Windows\SysWOW64\
regtlib msdatsrc.tlb
x86
---
cd C:\Windows\System32\
regtlib msdatsrc.tlb
-
Re: VB6 Controls stopped working
Regtlib doesn't even exist in Windows 7 Pro 64 bit. I did find Regtlibv12 in C:\Windows\Microsoft.NET\framework64. It let me register MSDATSRC.tlb. I then succesfully registered MSCOMCT2.ocx and VBCC11.ocx (a common controls replacement found elsewhere in this forum). When I tried to add the MSCOMCT2 control in VB6 It popped up this error window:
Attachment 117231
It added the control the second time I selected it BUT VB6 still will not recognize the objects associated with it. Removing the control produces the same error, though not the second time I tried it. I tried adding the VBCC11.ocx control and got the same errors. In fact, I can't add or use ANY new controls in VB6 beyond what was originally installed. VB6 either says they aren't registered (which they shouldn't even show up in the list if they are not) or I get an error accessing the registry.
I've spent HOURS online researching this problem, both on this forum and elsewhere and have yet to find a solution. I successfully installed VB6 on an HP and a Dell both with W7 Pro along with a companion piece of software I use on our CMM's more than six months ago and didn't even know I had a problem until I went to edit and add some new code in a program originally written and compiled to an exe in VB6 under XP. The original program (the exe program) which contains the object DTPICKER runs fine in W7. I just can't compile the source code after I edit it. I can make all the changes I want to the program. I can't save it, run it or compile it to an exe.
I have tried just about every "solution" I've seen, read and heard of save uninstalling VB6 and reinstalling it. One solution even suggested reinstalling W7 from scratch (a process that take 8 hours - 20 minutes to install W7 and 7 hours and 40 minutes to download and install all of the updates). For now, I will just have to resurrect the XP machine, edit and compile the programs there into exe's and run them on the W7 machines.
-
1 Attachment(s)
Re: VB6 Controls stopped working
We have Regtlib.exe installed here on Windows 7 x64.
It is in Windows folder. You must run this elevated or it will not work!
To fix run elevated (Admin) command prompt:
x64
---
cd C:\Windows\SysWOW64\
regtlib msdatsrc.tlb
Attachment 117239
BTW. I assume you are running Vb6.exe elevated (as Administrator). Set this via R-Click/Properties/Compatability Tab.
-
Re: VB6 Controls stopped working
Quote:
Originally Posted by
n8ves
Regtlib doesn't even exist in Windows 7 Pro 64 bit. I did find Regtlibv12 in C:\Windows\Microsoft.NET\framework64. It let me register MSDATSRC.tlb. I then succesfully registered MSCOMCT2.ocx and VBCC11.ocx (a common controls replacement found elsewhere in this forum).
Have you installed VS6.0 SP6?