Results 1 to 16 of 16

Thread: [RESOLVED] Loading content of a text file located on a website into a textbox/combobox

Threaded View

  1. #15

    Thread Starter
    Lively Member
    Join Date
    Mar 2008
    Posts
    75

    Re: Loading content of a text file located on a website into a textbox/combobox

    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:
    Code:
            ComboBox1.Items.Clear()
            ComboBox1.Items.AddRange(lines)
    If I use
    Code:
    ComboBox1.DataSource = lines
    it will not help, it will be the same thing as using
    Code:
     ComboBox1.Items.AddRange(lines)
    =(

    EDIT:

    Ithink i solved the problem by doing this under the refresh button:
    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)
    i will make a couple of test and report back!
    Last edited by Netmaster; Feb 7th, 2011 at 01:46 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width