We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

One TextBoxExt with several AutoComplete lists

Thread ID:





15274 Jun 15,2004 05:41 PM UTC Jun 16,2004 01:45 PM UTC WinForms 2
Tags: Tools
Kenton Hensley
Asked On June 15, 2004 05:41 PM UTC

I would like to use a single TextBoxExt with three different AutoComplet lists. I need to programattically set the propery sheet for "AutoComplete on xyzList". However, I can''t find them in documented or in intllisense. Can please you show me the way. Thanks, Kenton

Administrator [Syncfusion]
Replied On June 15, 2004 10:30 PM UTC

Hi Kenton, In the AutoCompleteDemo sample (Editors Package\AutoComplete\AutoCompleteDemo) there is some sample code that demonstrates what you are looking for (in MainForm.cs). Here is the code snippet that demonstrates how you can programatically enable AutoCompletion for any control(s): private void button1_Click(object sender, System.EventArgs e) { AutoCompleteModes mode = this.autoComplete1.GetAutoComplete(this.comboBox1); if(mode == AutoCompleteModes.Disabled) this.autoComplete1.SetAutoComplete(this.comboBox1, AutoCompleteModes.AutoSuggest); else this.autoComplete1.SetAutoComplete(this.comboBox1, AutoCompleteModes.Disabled); } private void button2_Click(object sender, System.EventArgs e) { AutoCompleteModes mode = this.autoComplete1.GetAutoComplete(this.textBox1); if(mode == AutoCompleteModes.Disabled) this.autoComplete1.SetAutoComplete(this.textBox1, AutoCompleteModes.Both); else this.autoComplete1.SetAutoComplete(this.textBox1, AutoCompleteModes.Disabled); } Regards Arun

Kenton Hensley
Replied On June 16, 2004 01:45 PM UTC

Thank you I see it now. Sorry to put you to the bother. Would you have any comment about my post concerning the extra space held by the docing manager? Many thanks for your assistance, Kenton


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon