title: 'file' is a type and cannot be used as an expression Error
body: <p>I want to create a encrypter which encrypt list of files using Rijndael, That's why I created a basic application with listbox which list all given files from a  particular drive. Using following code:</p>
  
  <pre><code>Imports System.IO
  
  Public Class Form1
  
  Public Sub DirSearch(ByVal sDir As String)
      Try
          For Each dir As String In Directory.GetDirectories(sDir)
              For Each file In Directory.GetFiles(dir, "*.pdf")
                  lstFilesFound.Items.Add(file)
                  FileToBase64(lstFilesFound.Items.Add(file))
              Next
              DirSearch(dir)
          Next
      Catch ex As Exception
          Debug.WriteLine(ex.Message)
      End Try
  End Sub
  
  Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
      DirSearch("c:\")
  
  End Sub
  </code></pre>
  
  <p>And it work as expected but when i try to merge this code with this: 
  <a href="http://www.codeproject.com/Articles/12092/Encrypt-Decrypt-Files-in-VB-NET-Using-Rijndael" rel="nofollow">http://www.codeproject.com/Articles/12092/Encrypt-Decrypt-Files-in-VB-NET-Using-Rijndael</a></p>
  
  <p>It gives error of 
  'file' is a type and cannot be used as an expression.</p>