|
-
Mar 4th, 2024, 05:00 PM
#3
Thread Starter
Addicted Member
Re: ComboBox dropdown scrollbar height
 Originally Posted by Dry Bone
Since you are using a manifest for visual-styles, if you want to turn it off for a specific control, do it like this:
Code:
Private Declare Function SetWindowTheme Lib "uxtheme.dll" (ByVal hwnd As Long, ByVal pszSubAppName As Long, ByVal pszSubIdList As Long) As Long
Private Sub Form_Load()
Call SetWindowTheme(cboMin.hwnd, 0, StrPtr(""))
End Sub
Thanks Bone for the suggestion, but, yes, it will remove the visual style, but the height of the dropdown is still the same (showing all items), even worse, because now there is no scrollbar in it.
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
|