locked
auto complete textbox and drop down lists RRS feed

  • Question

  • how to auto complete text boxes in c#?

     

    help..

    Monday, May 24, 2010 8:20 AM

Answers

  • Using AutoComplete

    Three of the above properties allow the user to auto-complete text within a TextBox control. This can only happen when Multiline is set to false .


    In the example above, the following settings are used:

    • AutoCompleteMode is set to Suggest .
    • AutoCompleteSource is set to CustomSource .
    • AutoCompleteCustomSource is set to a list of the C# keywords.

    My .NET Blog: http://michaelcrump.net
    Monday, May 24, 2010 4:26 PM

All replies

  • set the AutoCompleteMode property of text box SuggestAppend
    and also set the AutoCompleteSource property of text box.

    regards

    jayant

    Monday, May 24, 2010 9:08 AM
  • Using AutoComplete

    Three of the above properties allow the user to auto-complete text within a TextBox control. This can only happen when Multiline is set to false .


    In the example above, the following settings are used:

    • AutoCompleteMode is set to Suggest .
    • AutoCompleteSource is set to CustomSource .
    • AutoCompleteCustomSource is set to a list of the C# keywords.

    My .NET Blog: http://michaelcrump.net
    Monday, May 24, 2010 4:26 PM