Results 1 to 4 of 4

Thread: Combobox scroll to item

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2007
    Posts
    127

    Combobox scroll to item

    I have a combobox that i want to be able to programmatically scroll down to what the user types. It, of course, works how i would like it to when you highlight the combobox and type using a keyboard, but its a touch screen app so the keyboard is on the screen as buttons. Anyone have any idea how one would go about making a search function on the combobox to allow the user to start typing using an on screen keyboard, and scrolling the combobox to whatever the user is typing. thanks everyone

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Combobox scroll to item

    Is this on screen keyboard part of your application? I mean when one of the virtual keyboard buttons is pressed, does the combobox loose focus?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2007
    Posts
    127

    Re: Combobox scroll to item

    yes they are part of my app. the combobox doesnt lose focus when the letters are pressed. i was hoping to put it in the keyboard button click event, put an if combobox.isfocused then do the scrolling. but the scrolling is what i dont know how to do. thanks.

  4. #4
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Combobox scroll to item

    If they are part of your app then I'm not sure how the combobox can still have focus when you press a button...
    Anyway, it would be quite hard (I think) to actually expand the combobox and just highlight an item in it - however it would be quite easy to make it actually select a value from the combobox based on what they typed. Simply set the SelectedItem property to whatever item matches what they have typed.
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


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