Yes, I did try before to clear the combobox which works fine. But if the program is running and I change the content of the list on the server and then i click the refresh button it will not load the new list.
To reload the new list i get to re-run the program.
This is wierd!
This is what I have under the refresh button:
If I useCode:ComboBox1.Items.Clear() ComboBox1.Items.AddRange(lines)it will not help, it will be the same thing as usingCode:ComboBox1.DataSource = lines=(Code:ComboBox1.Items.AddRange(lines)
EDIT:
Ithink i solved the problem by doing this under the refresh button:
i will make a couple of test and report back!Code:Dim MovieListR As String = client.DownloadString("URL") Dim linesR As String() = MovieListR.Split(New String() {ControlChars.CrLf}, StringSplitOptions.RemoveEmptyEntries) ComboBox1.Items.Clear() ComboBox1.Items.AddRange(linesR)




Reply With Quote
