title: Loop file names in label vb.net
body: <p>Using vb.net, how can I loop through all file names in a given directory and then display them in a label?</p>
  
  <pre><code>Dim PATH_DIR_1 As String
  Dim INTERVAL_DIR_1 As String
  
  PATH_DIR_1 = Registry.GetValue("HKEY_CLASSES_ROOT\SOFTWARE\Sidewinder", "DIR_1", "")
  
  INTERVAL_DIR_1 = Registry.GetValue("HKEY_CLASSES_ROOT\SOFTWARE\Sidewinder", "INT_DIR_1", "")
  
  For Each foundFile As String In (PATH_DIR_1)
      Label1.Text = (foundFile)
  Next
  </code></pre>