Print Page | Close Window

ComboBox Auto Dropped State When Typing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14560
Printed Date: 22 November 2024 at 11:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ComboBox Auto Dropped State When Typing
Posted By: LeeHayton
Subject: ComboBox Auto Dropped State When Typing
Date Posted: 18 June 2009 at 5:49am

How do I get the ComboBox to automatically drop down when I start typing so that we can see the items that match what is being typed - the same functionality as the ComboBox control on the CommandBar where ShellAutoComplete = True - but for items that I have added to the ComboBox- e.g. "Item 1", "Item 2", "Item 3", etc.

 
Thanks
Lee



Replies:
Posted By: McKloony
Date Posted: 22 June 2009 at 2:29am
Private Const CB_SETCURSEL = &H14E
Private Const CB_FINDSTRING = &H14C&
Private Const CB_SHOWDROPDOWN = &H14F
Private Const CB_GETDROPPEDSTATE = &H157
 
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

PostMessage ComboBox.hwnd, CB_SHOWDROPDOWN, 0, 0
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net