Re: Quick Search!!!

From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 05/20/04


Date: Thu, 20 May 2004 18:11:07 -0400

I don't believe the datacombo responds to the same messages as the normal
combo. Others have tried contacting the manufacturer of the control (it's
not ms even if it says it is in the about), and so far have never heard any
positive successes in obtaining code to do this or other API techniques.

-- 
Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"In VB we had to code our own bugs. In dotnet we can inherit them."
"SaGdy" <djam388NOSPAM@hotmail.com> wrote in message 
news:uVGxv9nPEHA.3524@TK2MSFTNGP10.phx.gbl...
: Hi,
:
: How I can do quick search in DataCombo like in a simple Combo control by
: using API call? Is there any way?
:
: This code to search in a simple Combo control:
:
: Private Const CB_FINDSTRING = &H14C
:
: Private Function ComboBoxIndex(ByVal lHwnd As Long, ByVal sSearchText As
: String) As Long
: ComboBoxIndex = SendMessageAny(lHwnd, CB_FINDSTRING, -1, ByVal 
sSearchText)
: End Function
:
: Private Sub Command1_Click()
: Dim a As Long
: a = ComboBoxIndex(Combo2.hwnd, Combo2.Text)
: Combo2.ListIndex = a
: End Sub
:
: Thanks in advance,
: SaGdy.
:
: 


Relevant Pages

  • Re: Color Picking
    ... A Flex Grid Control will probably do what you want but you will need ... Private Type COLORSTRUC ... Private Sub Command0_Click ...
    (microsoft.public.access.formscoding)
  • Re: Color Picking
    ... A Flex Grid Control will probably do what you want but you will need ... Private Type COLORSTRUC ... Private Sub Command0_Click ...
    (microsoft.public.access.formscoding)
  • Re: Color Picking
    ... Private Type COLORSTRUC ... Public Function DialogColor(ctl As Control) As Long ... Private Sub Command0_Click ...
    (microsoft.public.access.formscoding)
  • Re: validate event
    ... > another control, I need to know the control that the user try to visit in ... Private Type POINTAPI ... Private Sub Text1_Validate ... Dim bAs Byte ...
    (microsoft.public.vb.general.discussion)
  • Re: Detecting mouse click
    ... Is there some way to return the control name wherever a user click on ... Private Hold As New Collection ... Private Sub Form_Load ... ElseIf TypeOf Source Is TextBox Then ...
    (microsoft.public.vb.general.discussion)