|
-
Nov 2nd, 2021, 09:48 AM
#1
Thread Starter
New Member
[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

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?
-
Nov 2nd, 2021, 12:40 PM
#2
Lively Member
Re: Windows 11 VB6 Combobox Styling issues
-
Nov 2nd, 2021, 12:49 PM
#3
Thread Starter
New Member
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
-
Nov 2nd, 2021, 01:14 PM
#4
Member
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.
-
Nov 2nd, 2021, 01:27 PM
#5
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.
-
Nov 2nd, 2021, 01:34 PM
#6
Thread Starter
New Member
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.
-
Nov 2nd, 2021, 01:35 PM
#7
Thread Starter
New Member
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.
-
Nov 2nd, 2021, 02:53 PM
#8
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?
-
Nov 2nd, 2021, 03:55 PM
#9
Re: Windows 11 VB6 Combobox Styling issues
 Originally Posted by baka
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>
-
Nov 2nd, 2021, 04:42 PM
#10
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?
-
Nov 2nd, 2021, 09:10 PM
#11
Re: Windows 11 VB6 Combobox Styling issues
 Originally Posted by baka
why the sarcasm?
👇
 Originally Posted by baka
what about the enchantments that u can find in the codebank?
did you mean attachments, enchantments or what?
-
Nov 3rd, 2021, 03:35 AM
#12
Thread Starter
New Member
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.
-
Nov 3rd, 2021, 04:11 AM
#13
Lively Member
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.
-
Nov 3rd, 2021, 04:44 AM
#14
Thread Starter
New Member
Re: [RESOLVED] Windows 11 VB6 Combobox Styling issues
-
Dec 6th, 2025, 12:47 PM
#15
New Member
Re: Windows 11 VB6 Combobox Styling issues
 Originally Posted by Eduardo-
?
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?
-
Dec 14th, 2025, 05:00 AM
#16
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|