Category / Section
How can I set autosuggest popup to open when the control gets the focus?
1 min read
You can use the ProcessAutoComplete method inorder to achieve this.
C#
private void textBox1_GotFocus(object sender, EventArgs e)
{
this.autoComplete1.ProcessAutoComplete (this.textBox1.Text );
}
VB
Private Sub textBox1_GotFocus(ByVal sender As Object, ByVal e As EventArgs)
Me.autoComplete1.ProcessAutoComplete(Me.textBox1.Text)
End Sub
Also,we have the SingleClick property which displays the AutoSuggest list when the user Clicks on the target control.
C#
this.autoComplete1.SingleClick =true;
VB
Me.autoComplete1.SingleClick = True