title: Visual Basic Compatiblity DLL exception in DirListBox
body: <p>We migrated from VB 6 to VB.NET 2008. Convertion went fairly well. There is one issue with exception.</p>
  
  <p>The following line in the InitializeComponent throws exceptions.</p>
  
  <pre><code>Me.dirSelector = New Microsoft.VisualBasic.Compatibility.VB6.DirListBox
  </code></pre>
  
  <p>The exception  message says that "Invalid Property value". It happens only once. After that everything seems to be working.</p>
  
  <p>declaration as follows</p>
  
  <pre><code>Public WithEvents dirSelector As Microsoft.VisualBasic.Compatibility.VB6.DirListBox
  </code></pre>
  
  <p>what could be the issue?</p>
  
  <p>Regards,</p>
  
  <p>Krish</p>