Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a google-like auto complete textbox with C# in a WPF application?

I tried to find a solution but I didn't found what I was searching for. So here is my problem. I want a google like behaviour with a textbox. As I type "dum" it should find dummy in the database and display it as option under the textbox. It should be selectable. I don't use ASP.net or any other stuff. Just pure C#.

Thanks for your help!

like image 746
shevron Avatar asked Dec 30 '25 19:12

shevron


1 Answers

Set the AutoCompleteSource property to a list of strings, and set AutoCompleteSource to CustomSource and AutoCompleteMode to Suggest.

like image 164
SLaks Avatar answered Jan 01 '26 09:01

SLaks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!