Hi,
I'm trying to add the suggest word of youtube search on textbox autosuggest.
my code on textchanged is:
Code:
  Do Until WebBrowser1.ReadyState = WebBrowserReadyState.Complete
            Application.DoEvents()
        Loop

        WebBrowser1.Document.GetElementById("masthead-search-term").SetAttribute("value", TextBox1.Text())
then as soon as youtube search give the autocomplete words I try to click a button with this code:
Code:
 Dim months As New AutoCompleteStringCollection
        For Each h As HtmlElement In WebBrowser1.Document.All
            If Not Object.ReferenceEquals(h.GetAttribute("className"), Nothing) AndAlso h.GetAttribute("className").Equals("gssb_m") Then
                Dim MySplitter() As String = Split((h.GetAttribute("InnerText")), vbNewLine)
                For l = 0 To UBound(MySplitter)
                    months.Add(MySplitter(l).ToString)
                Next
               
            End If
        Next
        TextBox1.AutoCompleteMode = AutoCompleteMode.Suggest
        TextBox1.AutoCompleteSource = AutoCompleteSource.CustomSource
        TextBox1.AutoCompleteCustomSource = months
My problems are:
1. the words that display on my texbox are not separated with space like youtube search show
2. if I don't give focus on youtube search and click something, the autocomplate words doesn't show.
somebody can help me to resolve this problem? thank you in advance