-
Dec 2nd, 2024, 06:26 AM
#1
Thread Starter
Fanatic Member
Win11 Style combobox usercontrol
Hi All. I was wondering if anyone knows of a combobox usercontrol that mimics the Win11 one in looks.
I know i can manifest but wondered if there is a usercontrol.
tks
-
Dec 2nd, 2024, 08:36 AM
#2
Re: Win11 Style combobox usercontrol
have you tryed searching google. or maybe just subclass the combobox in VB and add your own drawing functions seems the best option.
Just a qucik search in google and I found this
https://github.com/tannerhelland/vbA...and_List_Boxes
Last edited by BenJones; Dec 2nd, 2024 at 08:40 AM.
-
Dec 2nd, 2024, 09:44 AM
#3
Re: Win11 Style combobox usercontrol
Does VBCCR have a VisualStyles option? If not you could modify Krool's combobox control to wrap the CreateWindowEx call in a activation context (ActivateActCtx etc) so a manifest (which you can borrow from shell32.dll) is only applied to that control.
My cTaskDialog class uses that method (see signature below). For the whole dialog, not just if there's a combobox, but the principle is the same: activate, create the window, deactivate.
Won't it look out of place if everything doesn't have the style though?
-
Dec 2nd, 2024, 10:47 AM
#4
Re: Win11 Style combobox usercontrol
As I understand the requirement, he wants a control that looks like Windows 11 themed even if it runs on other Windows versions like Windows 7.
I don't think there is something like that there.
-
Dec 2nd, 2024, 11:44 AM
#5
Re: Win11 Style combobox usercontrol
There is some talk of this here https://www.vbforums.com/showthread....-style-control, of course leaning towards a roll your own. Maybe Olaf's post (#6) helps you get closer to what you'd like
-
Dec 2nd, 2024, 05:49 PM
#6
Thread Starter
Fanatic Member
Re: Win11 Style combobox usercontrol
 Originally Posted by Eduardo-
As I understand the requirement, he wants a control that looks like Windows 11 themed even if it runs on other Windows versions like Windows 7.
I don't think there is something like that there.
yes that correct. a usercontrol combobox that is not manifested but still looks like the win11 version on Win7, Win10 etc
-
Dec 2nd, 2024, 06:04 PM
#7
Thread Starter
Fanatic Member
Re: Win11 Style combobox usercontrol
Hi fafalone. I have Textbox usercontrol that i use that is flat and can change borders colours etc and the only control i have that looks out of place is the combobox.
would really love to find one that can mimic the Win11 themed one without manifesting.
-
Dec 2nd, 2024, 06:44 PM
#8
Re: Win11 Style combobox usercontrol
-
Dec 4th, 2024, 03:48 PM
#9
Junior Member
Re: Win11 Style combobox usercontrol
I believe that's called "skinning" a control as apposed to theming it. CodeJock is an example of that type of usage.
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
|