I am trying to setup a treeview control to display all drives and folders on the PC. So far I can display all drives and folders but the images will not show except rarely. I am using an imagelist with 4 images (index 0-3). The code below is used to load the drives in the treeview control. I have tried using every type of image possible from bmp to png and nothing. I have tried the Appllication.EnableVisualStyles() which I now know isn't needed in vs 2008. I am also having problems with a picturebox in another form that shows nothing but a shadow of the image. I suspect this may be a setting somewhere maybe in vs 2008 but am not able to find one.

Treeview Code:
  1. Dim drive As Integer = 0, dir As Integer = 0
  2.  
  3.         For drive = 0 To oDrives.Length - 1
  4.             Dim oNode As New TreeNode
  5.  
  6.             Try
  7.                 oNode.ImageIndex = 3
  8.                 oNode.SelectedImageIndex = 3
  9.                 oNode.Text = oDrives(drive).ToString.Substring(0, 2)
  10.                 tvFolders.Nodes.Add(oNode)
  11.                 oNode.Nodes.Add("")
  12.  
  13.             Catch ex As Exception
  14.                 MsgBox("Cannot create initial node: " & ex.ToString)
  15.             End Try
  16.         Next
  17.     End Sub

I will appreciate any ideas on this.