What ListBox properties do I set to...

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Dec 2008
Posts: 27
Reputation: edgar5 is an unknown quantity at this point 
Solved Threads: 2
edgar5 edgar5 is offline Offline
Light Poster

What ListBox properties do I set to...

 
0
  #1
Jan 2nd, 2009
Here is what I want to accomplish--I want a ListBox exactly like everyone else uses (almost always)! When the user mouse-clicks in the box and enters a keypress, the first item in the dropdown list, with that char as a first char, is selected. The values are restricted to those in the dropdown list (i.e. the user may not enter data directly from the keyboard.)
-Ed
MS Vista Ultimate 64-bit; Visual Studio 2008 & 2010 beta; Visual Basic; Visual C++

Asus P5E3 Deluxe w/ Intel E6850, 8 GB OCZ DDR3 PC3-12800, SAPPHIRE HD3870 GPU
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: What ListBox properties do I set to...

 
0
  #2
Jan 2nd, 2009
Set AutoCompleteSource to ListItems, then set AutoCompleteMode to whichever one you like. I prefer Suggest, but you can check them all to see which one is ideal for you.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 27
Reputation: edgar5 is an unknown quantity at this point 
Solved Threads: 2
edgar5 edgar5 is offline Offline
Light Poster

Re: What ListBox properties do I set to...

 
0
  #3
Jan 3rd, 2009
Originally Posted by Comatose View Post
Set AutoCompleteSource to ListItems, then set AutoCompleteMode to whichever one you like.

I had played about with various combinations of these but operator error bit me! I am doing file name creation based upon song titles; song titles occasionally have invalid (for file names) characters in them.

I have a Form which offers the user the opportunity to select replacement characters for the forbidden ones. As almost every Item in the ComboBox is a single letter, when I entered a single letter there needed to be no suggestion as I had gotten the entry right! The only multi-character Items are “ (single space)”, “<space>hyphen<space>” and a few other special entries involving the <space> character—all visually confusing without a textual description! Entering a <space> into the ComboBox does indeed bring up the suggestions which are appropriate.

Thanks for helping me stay focused and not give up on this tiny detail!
-Ed
MS Vista Ultimate 64-bit; Visual Studio 2008 & 2010 beta; Visual Basic; Visual C++

Asus P5E3 Deluxe w/ Intel E6850, 8 GB OCZ DDR3 PC3-12800, SAPPHIRE HD3870 GPU
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC