title: "User-defined type not defined" error in VB 6 under Windows 7
body: <p>I am using Windows 7 and my project is in VB 6.0. I am getting errors while I am executing my program. It shows the error:</p>
  
  <blockquote>
    <p>User-defined type not defined.</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
      Select Case Button.Key
          Case "trace": Call mntrace_Click
          Case "snrplot": Call mnSnrplot_Click
          Case "skyplot": Call mnskyplot_Click
          Case "nmea": Call mnNmea_Click
          Case "navigation": Call mnNavigation_Click
          Case "survey": Call mnSurvey_Click
          Case "pause/start": Call mnpause_Click
          Case "save": Call mnsave_Click
          Case "print": Call mnprint_Click
          Case "offline": Call mnoffline_Click
      End Select
  End Sub
  </code></pre>
  
  <p>How can I solve this error?</p>