I would like to have something like the openfiledialog, but disable the browsing of folders other than sub folders of the InitialDirectory. So no "Look in:"
and it would be nice to disable the places bar to the left without having to modify the registry before showing the dialog.
Can this be done with vb 2005?


in my case I only want files to be listed that are on the cdrom...
Code:
        Dim allDrives() As IO.DriveInfo = IO.DriveInfo.GetDrives()
        Dim d As IO.DriveInfo
        For Each d In allDrives
            If d.IsReady = True And d.DriveType = IO.DriveType.CDRom Then
                OpenFileDialog1.InitialDirectory = d.Name
                OpenFileDialog1.DefaultExt = "exe"
                OpenFileDialog1.Filter = "exe files (*.exe)|*.exe"
                OpenFileDialog1.ShowDialog()
            End If
        Next
Thanks for any help you can provide.
chris