Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27020

Auto show TextBox's auto complete list

$
0
0
I have the following code
Code:

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        TextBox1.AutoCompleteMode = AutoCompleteMode.Suggest
        TextBox1.AutoCompleteSource = AutoCompleteSource.CustomSource
        Dim ac As New AutoCompleteStringCollection
        ac.Add("this")
        ac.Add("is")
        ac.Add("how")
        ac.Add("that")
        ac.Add("these")
        ac.Add("thank")
        TextBox1.AutoCompleteCustomSource = ac
    End Sub

What i want to do is showing the TextBox's auto complete list programmatically not when typing in the TextBox

Viewing all articles
Browse latest Browse all 27020

Trending Articles