Results 1 to 34 of 34

Thread: VB6 Controls stopped working

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    7

    Unhappy 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.

  2. #2
    New Member
    Join Date
    Nov 2013
    Posts
    6

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    7

    Re: VB6 Controls stopped working

    Quote Originally Posted by KenBeccard View Post
    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!

  4. #4
    Hyperactive Member Daniel Duta's Avatar
    Join Date
    Feb 2011
    Location
    Bucharest, Romania
    Posts
    404

    Re: VB6 Controls stopped working

    At the moment, what kind of OS do you use ?

  5. #5

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    7

    Re: VB6 Controls stopped working

    Windows 7 Pro with Xp Virtual machine. Got it to work on the VM by not using Norton there.

  6. #6
    New Member
    Join Date
    Nov 2013
    Posts
    6

    Re: VB6 Controls stopped working

    Quote Originally Posted by Daniel Duta View Post
    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.

  7. #7
    New Member
    Join Date
    Nov 2013
    Posts
    6

    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.

  8. #8
    Hyperactive Member Daniel Duta's Avatar
    Join Date
    Feb 2011
    Location
    Bucharest, Romania
    Posts
    404

    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 ?

  9. #9

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    7

    Re: VB6 Controls stopped working

    Home office. Most controls will load.

  10. #10

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    7

    Re: VB6 Controls stopped working

    Not at all. Got around it by using an Xp Virtual machine with no Norton.

  11. #11
    Frenzied Member
    Join Date
    Mar 2008
    Posts
    1,210

    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.

  12. #12

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    7

    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.

  13. #13
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: VB6 Controls stopped working

    Quote Originally Posted by htsoftware View Post
    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.
    Last edited by Nightwalker83; Nov 4th, 2013 at 08:21 PM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  14. #14
    New Member
    Join Date
    Nov 2013
    Posts
    1

    Re: VB6 Controls stopped working

    Quote Originally Posted by htsoftware View Post
    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

  15. #15
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    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

  16. #16
    New Member
    Join Date
    Nov 2013
    Posts
    6

    Re: VB6 Controls stopped working

    Quote Originally Posted by DrUnicode View Post
    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.

  17. #17

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    7

    Re: VB6 Controls stopped working

    Finally after 11 months of searching and trying so many things! This worked for me. Thanks!

  18. #18
    Junior Member
    Join Date
    Jan 2007
    Posts
    29

    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

  19. #19
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    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.

  20. #20
    Junior Member
    Join Date
    Jan 2007
    Posts
    29

    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

  21. #21
    Junior Member
    Join Date
    Jan 2007
    Posts
    29

    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

  22. #22
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    Re: VB6 Controls stopped working

    Here is screenshot of Properties Window:
    Name:  VScrollBar.png
Views: 11519
Size:  11.6 KB
    If your Properties Window is not showing VScrollBar then it may be a PictureBox and thus will not have Min/Max.

  23. #23
    Junior Member
    Join Date
    Jan 2007
    Posts
    29

    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
    Last edited by halw; Nov 5th, 2013 at 09:03 PM. Reason: typos

  24. #24
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    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.
    Last edited by DrUnicode; Nov 5th, 2013 at 09:58 PM. Reason: More info

  25. #25
    Hyperactive Member Daniel Duta's Avatar
    Join Date
    Feb 2011
    Location
    Bucharest, Romania
    Posts
    404

    Re: VB6 Controls stopped working

    Quote Originally Posted by DrUnicode View Post
    fixed by "regtlib msdatsrc.tlb"
    Maybe it might be useful to know/learn how to register a tlb file programatically.

  26. #26
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    Re: VB6 Controls stopped working

    To register a tlb file programatically:

    http://www.vbaccelerator.com/home/VB...ty/article.asp

  27. #27
    New Member
    Join Date
    Nov 2013
    Posts
    1

    Re: VB6 Controls stopped working

    Quote Originally Posted by DrUnicode View Post
    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.

  28. #28
    New Member
    Join Date
    Nov 2013
    Posts
    2

    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.

  29. #29
    New Member
    Join Date
    Nov 2013
    Posts
    3

    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

  30. #30
    New Member
    Join Date
    Nov 2013
    Posts
    2

    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.

  31. #31
    New Member
    Join Date
    Apr 2013
    Posts
    2

    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 View Post
    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

  32. #32
    New Member
    Join Date
    Aug 2014
    Posts
    1

    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.

  33. #33
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    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

    Name:  RegTlib.jpg
Views: 9419
Size:  17.7 KB

    BTW. I assume you are running Vb6.exe elevated (as Administrator). Set this via R-Click/Properties/Compatability Tab.
    Last edited by DrUnicode; Aug 6th, 2014 at 10:31 PM. Reason: typo

  34. #34
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: VB6 Controls stopped working

    Quote Originally Posted by n8ves View Post
    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?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width