Results 1 to 16 of 16

Thread: [RESOLVED] Windows 11 VB6 Combobox Styling issues

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2017
    Posts
    15

    Resolved [RESOLVED] Windows 11 VB6 Combobox Styling issues

    Hi,
    I am completing some testing on our VB6 application using Windows 11. We have a rather large application that is showing strange visual styles with Combobox using MS Common controls v6. Oddly, this isn't on all of our controls but only quite a large and populated screen. Only drop-down and textboxes seem affected.

    Below is an example

    Name:  w11stlye.jpg
Views: 2406
Size:  15.8 KB

    I have tried re-paining the component on load but this also fails. Moving the mouse over the components does cause them to reload. Sometimes successful, sometimes with a grey background, and sometimes with ghosted text. I did see somewhere that placing the controls inside a picture box works, and it does, but that's a lot of work! Anyone else seen this issue?

  2. #2
    Lively Member
    Join Date
    Nov 2020
    Posts
    67

    Re: Windows 11 VB6 Combobox Styling issues


  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2017
    Posts
    15

    Re: Windows 11 VB6 Combobox Styling issues

    Thanks. That's the forum post I got the picture box issue from.. I was wondering if there was a better fix. As this would be a massive amount of work. Also my issue is slightly different as I have ghosting text

  4. #4
    Member
    Join Date
    Oct 2007
    Posts
    52

    Re: Windows 11 VB6 Combobox Styling issues

    It's the same exact issue I saw. And I decided since ultimately the issue is because there's something quirky about the frame control (it had problems on XP too with theming option buttons), that I could either wait for MS to fix (and perhaps wait a very long time) or just workaround by either putting controls in a picture box, trying a different frame control like krool's CommonControl ones, or getting rid of the frame altogether. I opted in my case to just get rid of it altogether. But yeah, a pain.

  5. #5
    The Idiot
    Join Date
    Dec 2014
    Posts
    3,001

    Re: Windows 11 VB6 Combobox Styling issues

    one solution could be to parse the project files (like .frm) and add pictureboxes and place the textboxes inside.
    that way u dont need to do it manually. of course u need to create the parser. but it shouldnt be that hard to do, just a bit of understanding how the .frm works, and its quite simple.

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2017
    Posts
    15

    Re: Windows 11 VB6 Combobox Styling issues

    Thank you. Only issue I have is I know I am really close the the control limit on some forms. So I'm worried about that. I will see how many areas need changing tomorrow. Thanks for the parser idea.

  7. #7

    Thread Starter
    New Member
    Join Date
    Mar 2017
    Posts
    15

    Re: Windows 11 VB6 Combobox Styling issues

    The only bit I cannot work out, is that it only does this on some forms. I have a few that are completely uneffected.

  8. #8
    The Idiot
    Join Date
    Dec 2014
    Posts
    3,001

    Re: Windows 11 VB6 Combobox Styling issues

    what about the enchantments that u can find in the codebank?
    theres several replacements or upgrades for the normal components.
    if u find something that u can replace it with, it shouldn't be that hard to create a parser that would replace the component u are using with the "new" component.

    another take is all the "DPI-awereness" solutions, manifest etc. that maybe helps?
    also, are there any differences between the IDE and compiled version?

  9. #9
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,167

    Re: Windows 11 VB6 Combobox Styling issues

    Quote Originally Posted by baka View Post
    what about the enchantments that u can find in the codebank?
    LOL

    Some of the submissions there are pure magic, aren't they? :-))

    cheers,
    </wqw>

  10. #10
    The Idiot
    Join Date
    Dec 2014
    Posts
    3,001

    Re: Windows 11 VB6 Combobox Styling issues

    well. a combobox is not that hard to create, so why the sarcasm?
    Im not using any component but I know of the CommonControls (Replacement of the MS common controls) by Krool could be of interest. and other numerous control that could be used. and why not?
    if u have a better idea, please share. otherwise why bother?

  11. #11
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,666

    Re: Windows 11 VB6 Combobox Styling issues

    Quote Originally Posted by baka View Post
    why the sarcasm?
    👇

    Quote Originally Posted by baka View Post
    what about the enchantments that u can find in the codebank?

    did you mean attachments, enchantments or what?

  12. #12

    Thread Starter
    New Member
    Join Date
    Mar 2017
    Posts
    15

    Re: Windows 11 VB6 Combobox Styling issues

    Hi all,
    Again thanks for the help. I have run a test application using CommonControls (Replacement of the MS common controls). I have replaced the standard Frame with the new one. This has fixed this problem. I will now replace all frames with the replacement in the production app.

    Thanks, baka for the recommendation.

  13. #13
    Lively Member
    Join Date
    Nov 2020
    Posts
    67

    Re: Windows 11 VB6 Combobox Styling issues

    Hi chirchy87,
    since you have found the solution it would be useful if you set the discussion as SOLVED. Thanks.

  14. #14

    Thread Starter
    New Member
    Join Date
    Mar 2017
    Posts
    15

    Re: [RESOLVED] Windows 11 VB6 Combobox Styling issues


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

    Re: Windows 11 VB6 Combobox Styling issues

    Quote Originally Posted by Eduardo- View Post
    ?

    did you mean attachments, enchantments or what?
    Gentlefolk,

    Given the context wouldn't we read enhancements? Also, understanding the context of our aging userbase (I'm 67) we are now more prone to arthritis induced typos. Let's agree to give each other a break?

  16. #16
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,560

    Re: [RESOLVED] Windows 11 VB6 Combobox Styling issues

    4 years later, one of Santa's little helpers arrives to ensure the children of the VBForum avoid Santa's naughty list.

    Children! It is a lump of coal for you naughty ones! Be good.
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

Tags for this Thread

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