Results 1 to 15 of 15

Thread: New Win10 development machine, VB6 IDE "mostly" going fine, but...

  1. #1

    Thread Starter
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    9,940

    New Win10 development machine, VB6 IDE "mostly" going fine, but...

    Hi All,

    Well, I finally broke down and bought a new development machine this weekend, with the latest Win10 of course.

    With a thorough review of my notes, and some liberal use of the metaphorical sledge hammer, the VB6 IDE is pretty much up and running.

    Just as an FYI for others, the "tricks" I've found are:
    • Place a zero-byte MSJAVA.DLL in the C:\Windows folder.
    • When installing, don't install the ADO stuff, even though the installer issues a warning about it.
    • Definitely install VB6 SP6 (and I also installed a couple of other KB releases).
    • Set compatibility to Windows Vista SP2 on the VB6.EXE.
    • As a further FYI, the mscomctl.ocx and mscomct2.ocx seem to be working just fine.


    But I do have one problem. I've lost my selection box. Here it is on my old Win7 computer:

    Name:  Drag.gif
Views: 1120
Size:  7.8 KB

    And then, when I finish dragging the box over the controls, I don't get my selection handles. Here those are on my Win7 computer:

    Name:  Sel.gif
Views: 972
Size:  7.3 KB

    What's interesting is that they are actually selected on the new Win10 computer. I just can't see what I'm selecting, and I can't see what I've selected when I'm done.

    Anyone have any ideas?

    Thanks,
    Elroy
    Last edited by Elroy; Apr 24th, 2017 at 11:10 AM.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  2. #2
    Fanatic Member
    Join Date
    Jan 2015
    Posts
    596

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    I have exactly the same issue. I had no time to try to find some way to fix it.

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    Quote Originally Posted by Elroy View Post
    Place a zero-byte MSJAVA.DLL in the C:\Windows folder.
    Not needed, just ok the dialog and continue. I have never needed this to keep the elephants away.


    You are applying way more shims than you need or want to.

    There are only three you want:

    Name:  VB6 Capture.png
Views: 795
Size:  6.3 KB

    And many people can skip HighDpiAware for that matter.

    VirtualizeDesktopPainting is needed but you do lose the grab handles when you multiselect in the design views. I never found a fix for that.

  4. #4

    Thread Starter
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    9,940

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    Ahhh, thanks dilettante. I'll play around with the shims more when I get a chance.

    Also, I found my problem with the selection rectangle (or, should I say, Win10's problem). I've got multiple monitors, which I virtually always do. If I don't make the most-left-hand monitor my "main display" (under Display Settings), Windows (or VB6) gets confused about where to put the selection rectangle.

    I discovered this when I "saw" the selection rectangle WAY off to the left in the totally wrong place. That's not a terribly bad fix, and I can live with it.

    The multi-select "show what's selected" handles, that's another problem. It's going to be distressing if I lose those, as I have some relatively complex forms that I occasionally make changes to, like today.

    Anyone else seen this? And maybe have the fix?

    Best Regards,
    Elroy
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  5. #5

    Thread Starter
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    9,940

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    And crud! My Joe Bott scroll wheel fix is no longer working. Say Dilettante, what are you using to fix this?
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  6. #6
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    I've had trouble with scroll wheel add-ins.

    Now I just install X-Mouse Button Control and set up a profile for VB6 with "Scroll Method: Method 1" and call it good.

    No real pain for me, because I needed a hack anyway. I have a Microsoft Mouse that doesn't have a decent driver on Windows 10 (I need to remap Mouse Button 5 as 'Back") so I needed some sort of mouse helper anyway.

  7. #7

    Thread Starter
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    9,940

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    Hmm, ok, I tried X-Mouse but couldn't get it working for the life of me. Tried both 32 and 64 bit versions, but no cigar. I finally got tired of playing with settings and reloading VB6, and started looking for things I'd done in the past.

    Finally, I found FreeWheel. I lost my scrolling in the top-half on split-code-windows, but everything else seems to work, so I'll take it.

    I'm still worried about losing my little interior-handles when I've done a multi-control-selection. It'd sure be nice to get those back somehow.

    If anyone has any ideas, it'd be much appreciated.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  8. #8

    Thread Starter
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    9,940

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    Well crud. Nothing in any other forums I can find about the multi-select handles. I also thought about an add-in, but there doesn't seem to be anything in the extensibility model about whether or not a control is selected.

    I suppose I could consider an external program that monitors any open form in the VB6 IDE, but that wouldn't cover windowless controls. And, in any event, I suspect the selection list is internal to the VB6 IDE, and not available to any windows API calls.

    Hmmm, I guess I'll have to learn how to do form design with shades on. This just feels like Microsoft giving VB6 little cuts, still trying to see if they can kill it off.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  9. #9
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    FYI: The MouseWheelFix add-in works for me in Win10

    I don't use the compatibility. Rather I use external manifest and declare VB as Win10 compatible (or whatever system I happen to be running). I also declare it DPIaware & include common controls v6. However, I do use the "Run this program as an administrator" in the compatibility tab. Even skipping the ACT (I think that's what dilettante's screenshot is), I lose grab handles when multiselecting also.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  10. #10
    Fanatic Member
    Join Date
    Apr 2015
    Posts
    524

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    Quote Originally Posted by dilettante View Post
    VirtualizeDesktopPainting is needed
    Does this remove the lag when moving or sizing controls?

    Karl

  11. #11
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    Is there a lag anymore? I don't see any, but maybe there was before using VirtualizeDesktopPainting. Things are much different now in the post-Aero world.

  12. #12
    Fanatic Member
    Join Date
    Apr 2015
    Posts
    524

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    Quote Originally Posted by dilettante View Post
    Is there a lag anymore? I don't see any, but maybe there was before using VirtualizeDesktopPainting. Things are much different now in the post-Aero world.
    I tried VirtualizeDesktopPainting.
    The effect is worse than without.
    Now when moving/sizing a control with the mouse in the IDE, it becomes invisible until mouseup.
    Better with flicker than invisibility.

  13. #13

    Thread Starter
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    9,940

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    Quote Originally Posted by LaVolpe View Post
    FYI: The MouseWheelFix add-in works for me in Win10

    I don't use the compatibility. Rather I use external manifest and declare VB as Win10 compatible (or whatever system I happen to be running). I also declare it DPIaware & include common controls v6. However, I do use the "Run this program as an administrator" in the compatibility tab. Even skipping the ACT (I think that's what dilettante's screenshot is), I lose grab handles when multiselecting also.
    Say LaVolpe,

    Would you be amenable to sharing the manifest file you use with the VB6.exe program? I've got things pretty much running (except for the multi-select handles), but I still wouldn't mind taking a look at what you're doing.

    All The Best,
    Elroy
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  14. #14
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    Well soon we'll start seeing reports of new changes. Win 10 version 1703 (Redstone 2, a.k.a. "Creators Update") is being pushed out gradually now.

  15. #15

    Thread Starter
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    9,940

    Re: New Win10 development machine, VB6 IDE "mostly" going fine, but...

    A BIG thanks to Dilettante for the X-mouse tip. This is the ONLY one I could get to work with VB6 and the latest Microsoft mouse drivers.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

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