Results 1 to 5 of 5

Thread: [RESOLVED] Toolstrip combo problem

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2004
    Location
    India
    Posts
    526

    Resolved [RESOLVED] Toolstrip combo problem

    Hi guys,

    I have a form with a tool strip and a combo control in it. Now my combo control has the following items (e.g):

    aarti drugs
    acc ltd
    tata chem
    tata steel
    zee tele
    zodiac

    The property Autocompletemode is SuggestAppend and autocomplete source is listitems. Now when I type something it fills it up and when I press enter that is selected.

    In the selected change event I am getting the text of the combo for a particular item.

    Now the problem -

    - when I select an item from list for eg. tata steel here, I get index and item text.
    - when i type acc the rest is filled and when i press enter I get that text in full (acc ltd)
    - But now when I use down arrow to scroll to other item it does not scroll and instead only a part of text is highlighted
    - try it guys and you will see what i am talking about.

    I want to use down arrow to scroll among items. Initially it works, but if i type partial text and autocomplete it then the down arrow thing does not work and instead only partial highlighted text is shown.

    I will be glad if anyone can help me solve it.

    Thanks a lot,

    Cheers,
    GR

  2. #2
    Addicted Member
    Join Date
    Mar 2010
    Location
    Southeast Michigan
    Posts
    155

    Re: Toolstrip combo problem

    I tried it and the combobox seems to me to be working as expected. When typing in acc autocomplete suggests the correct item. After selecting something, pressing the down arrow shows me items that are filtered based on the text that is already typed. In this case all items that start with 'a'.

    For example if I select tata (steel) and press enter that text is filled. Then if I press the down arrow I move through the listing of those items that begin with the letter t.

    Maybe I'm not understanding your question?
    Dave

    Helpful information I've found here so far : The Definitive "Passing Data Between Forms" : Restrict TextBox to only certain characters, numeric or symbolic :
    .NET Regex Syntax (scripting) : .NET Regex Language Element : .NET Regex Class : Regular-Expressions.info
    Stuff I've learned here so far : Bing and Google are your friend. Trying to help others solve their problems is a great learning experience

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2004
    Location
    India
    Posts
    526

    Re: Toolstrip combo problem

    Quote Originally Posted by dlscott56 View Post
    I tried it and the combobox seems to me to be working as expected. When typing in acc autocomplete suggests the correct item. After selecting something, pressing the down arrow shows me items that are filtered based on the text that is already typed. In this case all items that start with 'a'.

    For example if I select tata (steel) and press enter that text is filled. Then if I press the down arrow I move through the listing of those items that begin with the letter t.

    Maybe I'm not understanding your question?
    Well what you can do is -

    - select tata steel by click on combo box. so tata steel is selected.
    - now type acc and the rest will be filled. press enter.
    - now when u press the down arrow key you will find the problem. it wont goto next item in list.

  4. #4
    Addicted Member
    Join Date
    Mar 2010
    Location
    Southeast Michigan
    Posts
    155

    Re: Toolstrip combo problem

    I think what's happening is that you're selecting an item so there is now text in the box. So pressing the down arrow is looking for an item that matches the filter criteria already entered. In this case there is only one item that matches the criteria.

    If you change it's properties to suggest, it works as you desired but doesn't automatically append the data.

    I'm sure someone more experienced than me can come up with a better idea for you.
    Last edited by dlscott56; Mar 17th, 2010 at 01:13 PM.
    Dave

    Helpful information I've found here so far : The Definitive "Passing Data Between Forms" : Restrict TextBox to only certain characters, numeric or symbolic :
    .NET Regex Syntax (scripting) : .NET Regex Language Element : .NET Regex Class : Regular-Expressions.info
    Stuff I've learned here so far : Bing and Google are your friend. Trying to help others solve their problems is a great learning experience

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2004
    Location
    India
    Posts
    526

    Re: Toolstrip combo problem

    Thanks for your replies guys. By resetting the autocomplete source I solved the problem. I wrote code whereby i set autocomplete to none then reset it to listitems.

    Cheers.

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