)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display AutoComplete popup upon demand?

Platform: WinForms |
Control: ButtonEdit |
Published Date: August 24, 2015 |
Last Revised Date: May 24, 2019

Normally, the AutoComplete control popup is displayed upon user input in its Target control. It is also possible to display the AutoComplete popup programmatically, by using its function, ProcessAutoComplete.

The following code example demonstrates the same.

 

C#

//Sets the AutoComplete Mode as suggestion.
this.autoComplete1.SetAutoComplete(this.textBoxExt2, Syncfusion.Windows.Forms.Tools.AutoCompleteModes.AutoSuggest);
//Sets the focus on TextBoxExt.
this.autoComplete1.ActiveFocusControl = this.textBoxExt2;
//Shows the autoCompletePopup.
this.autoComplete1.ProcessAutoComplete(this.textBoxExt2.Text, string.Empty, Point.Empty);

 

VB

'Sets the AutoComplete Mode as suggestion.
Me.autoComplete1.SetAutoComplete(Me.textBoxExt2, Syncfusion.Windows.Forms.Tools.AutoCompleteModes.AutoSuggest)
'Sets the focus on TextBoxExt.
Me.autoComplete1.ActiveFocusControl = Me.textBoxExt2
'Shows the autoCompletePopup.
Me.autoComplete1.ProcessAutoComplete(Me.textBoxExt2.Text, String.Empty, Point.Empty)

 

Note:

When AutoComplete mode is set to disabled, the AutoComplete process is stopped.

 

AutoComplete popup not applied to ButtonEdit

Figure 1: AutoComplete popup not applied to ButtonEdit

AutoComplete popup on ButtonEdit by click child button

Figure 2: AutoComplete popup on ButtonEdit on clicking the ButtonEditChild button

Sample Links:

C#: ButtonEditAutoComplete_C#

VB: ButtonEditAutoComplete_VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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