Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to use AutoComplete property in TextBox (System.Windows.Controls) control as like TextBox (System.Windows.Forms) Control of Windows application in C# ?
Posted

The question is re-posted.
I have already provided the solution to your question.

-KR
 
Share this answer
 
try this type of
C#
<!--AutoCompleteTextbox.xaml file -->  
<canvas x:class="WPFAutoCompleteTextbox.AutoCompleteTextBox" xmlns:x="#unknown">
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="300" Width="300">  
</canvas>  
  
  
  
<!-- Window1.xaml file -->  
<window x:class="WPFAutoCompleteTextbox.Window1" xmlns:x="#unknown">
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:local="clr-namespace:WPFAutoCompleteTextbox"          
    Title="WPF AutoCompleteTextBox" Height="200" Width="300">  
    <stackpanel background="SteelBlue">  
        <button name="button1" height="23" width="75" margin="20" click="button1_Click" horizontalalignment="Left">Clear</button>  
        <local:autocompletetextbox height="23" width="240" x:name="textBox1" delaytime="500" threshold="2" xmlns:local="#unknown" />  
    </stackpanel>  
</window>


or can hit this link for more information and a complete information just try this.
http://code.msdn.microsoft.com/windowsdesktop/WPF-Autocomplete-Textbox-df2f1791
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900