Hi,
i'm trying to populate a textbox that takes data from a website.
it work but sometimes give me error that sourse is protected
Here my code.
declare
Dim word As New AutoCompleteStringCollection
On textchanged
Code:
    Private Sub txtSearch_TextChanged(sender As Object, e As EventArgs) Handles txtSearch.TextChanged
        'txtSearch.AutoCompleteMode = AutoCompleteMode.Suggest
        ' txtSearch.AutoCompleteSource = AutoCompleteSource.CustomSource
        If txtSearch.Text.Length > 0 Then
            ' helpword()
        End If
    End Sub
and here function that give me the result
Code:
 Private Sub helpword()

        Try

            Dim Result As String = New WebClient() With {.Proxy = Nothing, .Encoding = Encoding.UTF8}.DownloadString("testlink"...and some code
 For Each MyItem In Split(Result, """,""")
               word.Add(MyItem)
            Next
            txtSearch.AutoCompleteCustomSource = word
        Catch ex As Exception
            'errors.WriteLog("Error :" & Date.Now.ToString & " " & ex.Message) 
        End Try
    End Sub
someone can help me what I'm doing wrong?
because not everytime , maybe when I type to fast letters on my PC I have the error.

Error say:'System.AccessViolationException' in System.Windows.Forms.dll
it try to read or write protected source

thank you