Click here to Skip to main content
15,910,872 members
Home / Discussions / C#
   

C#

 
QuestionListbox suggestion from textbox Pin
dudz artiaga18-Aug-13 5:33
dudz artiaga18-Aug-13 5:33 
AnswerRe: Listbox suggestion from textbox Pin
Abhinav S18-Aug-13 6:18
Abhinav S18-Aug-13 6:18 
GeneralRe: Listbox suggestion from textbox Pin
dudz artiaga18-Aug-13 15:19
dudz artiaga18-Aug-13 15:19 
AnswerRe: Listbox suggestion from textbox Pin
SaqibRasheed18-Aug-13 11:18
SaqibRasheed18-Aug-13 11:18 
GeneralRe: Listbox suggestion from textbox Pin
dudz artiaga18-Aug-13 15:25
dudz artiaga18-Aug-13 15:25 
GeneralRe: Listbox suggestion from textbox Pin
SaqibRasheed19-Aug-13 2:45
SaqibRasheed19-Aug-13 2:45 
GeneralRe: Listbox suggestion from textbox Pin
BillWoodruff19-Aug-13 11:52
professionalBillWoodruff19-Aug-13 11:52 
AnswerRe: Listbox suggestion from textbox Pin
BillWoodruff18-Aug-13 14:12
professionalBillWoodruff18-Aug-13 14:12 
You can achieve this functionality using only a WinForms ComboBox.

Just set the ComboBox 'AutoComplete property to 'Suggest; and, set the 'AutoCompleteSoure property to 'ListItems. The AutoSuggest feature will work with the ComboBox 'DropDownStyle property set to either 'Simple, or 'DropDown, but not 'DropDownList.

Enter a set of items, using the design-time editor, for example:
aardvarks
axolotls
bears
beavers
bushmasters
chickens
civet cats
coyotes
dingos
eagles
foxes
gorillas
horses
hyenas
Run the application, and watch what's presented in the auto-dropdown when you type the character "b," and then observe what's presented when you enter "be."

Note that you can set the font, color, style, etc. of what your type, what's displayed after your choice, in the text-entry area, but the suggest drop-down items will use a default Windows small-size font.

You can also define a 'CustomSource for your 'Suggest list[^].

~
“This isn't right; this isn't even wrong." Wolfgang Pauli, commenting on a physics paper submitted for a journal

GeneralRe: Listbox suggestion from textbox Pin
dudz artiaga18-Aug-13 15:27
dudz artiaga18-Aug-13 15:27 
GeneralRe: Listbox suggestion from textbox Pin
BillWoodruff19-Aug-13 12:05
professionalBillWoodruff19-Aug-13 12:05 
AnswerRe: Listbox suggestion from textbox Pin
TnTinMn19-Aug-13 17:14
TnTinMn19-Aug-13 17:14 
GeneralRe: Listbox suggestion from textbox Pin
BillWoodruff20-Aug-13 17:48
professionalBillWoodruff20-Aug-13 17:48 
GeneralRe: Listbox suggestion from textbox Pin
TnTinMn21-Aug-13 4:34
TnTinMn21-Aug-13 4:34 
QuestionSotware Template for manage SMEs Pin
Member 990191217-Aug-13 7:48
Member 990191217-Aug-13 7:48 
AnswerRe: Sotware Template for manage SMEs Pin
Dave Kreskowiak17-Aug-13 11:40
mveDave Kreskowiak17-Aug-13 11:40 
AnswerRe: Sotware Template for manage SMEs Pin
Mycroft Holmes17-Aug-13 13:54
professionalMycroft Holmes17-Aug-13 13:54 
AnswerRe: Sotware Template for manage SMEs Pin
Abhinav S17-Aug-13 17:16
Abhinav S17-Aug-13 17:16 
GeneralRe: Sotware Template for manage SMEs Pin
Member 990191218-Aug-13 5:01
Member 990191218-Aug-13 5:01 
GeneralRe: Sotware Template for manage SMEs Pin
Dave Kreskowiak18-Aug-13 7:32
mveDave Kreskowiak18-Aug-13 7:32 
QuestionHow To access inner Control in custom user control Pin
Mahdi_kishislan17-Aug-13 0:11
Mahdi_kishislan17-Aug-13 0:11 
AnswerRe: How To access inner Control in custom user control Pin
Ron Beyer17-Aug-13 4:03
professionalRon Beyer17-Aug-13 4:03 
GeneralRe: How To access inner Control in custom user control Pin
OriginalGriff17-Aug-13 4:55
mveOriginalGriff17-Aug-13 4:55 
GeneralRe: How To access inner Control in custom user control Pin
Mahdi_kishislan17-Aug-13 20:15
Mahdi_kishislan17-Aug-13 20:15 
GeneralRe: How To access inner Control in custom user control Pin
OriginalGriff17-Aug-13 21:20
mveOriginalGriff17-Aug-13 21:20 
GeneralRe: How To access inner Control in custom user control Pin
Mahdi_kishislan17-Aug-13 20:15
Mahdi_kishislan17-Aug-13 20:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.