Results 1 to 4 of 4

Thread: Problem with listbox

  1. #1

    Thread Starter
    Hyperactive Member yousufkhan's Avatar
    Join Date
    Jan 2002
    Location
    India
    Posts
    492

    Problem with listbox

    I m using a listbox for help on the item, the data in the
    listbox is comming from the table the sorted property
    of listbox is true after feeling the data in the listbox the
    focus is into the listbox here when in the listbox
    i press any 3 keys the cursor should go to on that list row whose
    first 3 alphbates matche with pressed alphabates
    it is working for first time second time it doesnt work
    what should i do to work it

  2. #2
    Junior Member llkhoutx's Avatar
    Join Date
    Jan 2005
    Location
    Houston, TX
    Posts
    19

    Re: Problem with listbox

    What you are doing should work.

    Maybe your form is corrupted.

    What's the row source for the ListBox?

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Problem with listbox

    When you say it works for the first time but not the second, are you refering
    to the key presses for an autofind listbox? So you are trying to select
    entry "abc" and you type "a" it selects the first items that starts with an "a"
    but when you press "b" it goest to the first items that starts with an "b"
    instead of going to the first items that starts with an "ab"?

    It should only work for the first key pressed and not for the second or third.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Hyperactive Member yousufkhan's Avatar
    Join Date
    Jan 2002
    Location
    India
    Posts
    492

    Re: Problem with listbox

    no i m not reffering to autofind listbox i have just kept sorted property to true

    if my listbox is having 3 items list "abc","efg","hij" when i press first time abc it goes to that row then when i press efg it goes to the second row but when again i press abc it doesnt go

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width