×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

VB6 StatusBar Win7/Win10 conundrum

VB6 StatusBar Win7/Win10 conundrum

VB6 StatusBar Win7/Win10 conundrum

(OP)
I have an application written in VB6 on Win 7 computer. On my Form I use a StatusBar from Microsoft Windows Common Controls 5.0 (SP2) (C:\Windows\SysWOW64\COMCTL32.OCX)

When I copy my app to Win 10 computer, VB6 displays a message:
“App.Path\comctl32.Ocx' could not be loaded--Continue Loading Project?”
error, and if I continue loading - my StatusBar gets replaced by PictureBox control and I get the log file with “Class ComctlLib.StatusBar of control StatusBar1 was not a loaded control class.”

I can delete my StatusBar (which is now a PictureBox), add component Microsoft Windows Common Controls 5.0 (SP2) (it wasn't selected like it was never used in this Project), place a StatusBar on my Form and all code works like a dream.

I’ve compared my Projects’ VBP files and the only difference I see is:
Win 10
Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.4#0; COMCTL32.OCX
Win 7
Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0; comctl32.Ocx 

I’ve also looked at the difference between the two OCX files from Win7 and Win10 and looks like Win7 ocx (11/1/2012) is a lot newer than Win10 (3/9/2004)


Any idea of what’s going on?
Why VB6 project copied from Win7 to Win10 looses StatusBar and ignores Microsoft Windows Common Controls 5.0 (SP2) ponder

PS. One StatusBar on one Form is not a problem to fix/replace, but I have many more Forms and StatusBars all over the app.

EDIT:
After copying VB6 app from Win7 to Win10, I changed in VBP file #1.4# to #1.3# and StatusBar worked just fine. Then, what is this #1.3# ?
VBA with #1.3# works OK in both: Win7 and Win10

---- Andy

"Hmm...they have the internet on computers now"--Homer Simpson

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close