title: How to make a list update constantly while running the application. VB
body: <p>How would i get my list to update all the time while my application is running instead of updating only when i start my application?</p>
  
  <pre><code>Private Sub Form1_Load(ByVal sender As System.Object,
                            ByVal e As System.EventArgs) Handles MyBase.Load
      On Error Resume Next
      Dim username As String
      username = SystemInformation.UserName
      Dim filesInFolder As String
      filesInFolder= "C:\Users\" + username + "\AppData\Roaming\pictures\pics"
  
      Dim di As New IO.DirectoryInfo(filesInFolder)
      Dim aryFi As IO.FileInfo() = di.GetFiles("*.jpg")
      Dim fi As IO.FileInfo
  
          For Each fi In aryFi
              list.Items.Add(fi.Name)
          Next
  End Sub
  </code></pre>