title: combobox not updating? VB.net
body: <p>I'm unable to update the contents in combobox2 when I change my selection in combobox1, what am I missing or doing wrong?</p>
  
  <pre><code>  Imports System.IO
  Public Class Form1
  
      Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
          'get sub directory\ toolpalette group names...
          ComboBox1.DataSource = New DirectoryInfo("C:\VTS\TREADSTONE LT\ATC").GetDirectories()
  
          Dim filelocation As String
          filelocation = ("C:\VTS\TREADSTONE LT\ATC\" &amp; ComboBox1.Text &amp; "\")
  
          'gets file\ paltte names...
          For Each BackupFiles As String In My.Computer.FileSystem.GetFiles(filelocation, FileIO.SearchOption.SearchTopLevelOnly, "*.*")
              ComboBox2.Items.Add(IO.Path.GetFileNameWithoutExtension(BackupFiles))
          Next
  
          'reloads the combobox contents...
          ComboBox1.Refresh()
  
      End Sub
  
  
  End Class
  </code></pre>