user1951083
user1951083

Reputation: 261

c# Possibilities after userinput (textbox)

I'm not sure how to ask this so I will use an example:

Words: Soccer, Swimming, Swordfighting Tennis, Baseball, Basketball, Formule1, Fishing, Cycling, ...

Control: txtSports

When the user inputs the letter "s" in the TextBox i would like to get the possibilities that starts with an "s". (Soccer, Swimming, Swordfighting) If the user then inputs "w" (Swimming, Swordfighting) and so on.

How can I do this? I'm doing this in c# (Windows 8 Application)

Upvotes: 1

Views: 100

Answers (1)

Pavel Vladov
Pavel Vladov

Reputation: 4837

You should use the autocomplete feature of the text box. Here's a nice article about it.

Upvotes: 2

Related Questions