Results 1 to 2 of 2

Thread: [RESOLVED] Displaying text in a listbox when typed in a textbox

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    12

    Resolved [RESOLVED] Displaying text in a listbox when typed in a textbox

    Hi Guys,
    I know this is a very simple question. But somehow I cannot solve this problem. I have a listbox and a textbox. I want to display the text in the Listbox when typed in a textbox. How do I do that? Any help will be highly appreciated!!! Thank you.

  2. #2
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Displaying text in a listbox when typed in a textbox

    I would use the TextBox's TextChanged event to and loop through the ListBox's Items looking for the one which starts with the text in the TB, if found, set the index to it otherwise I guess set it to -1
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

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