"User-defined type not defined" error in VB 6 under Windows 7

Posted by sunil.nishad87 on Stack Overflow See other posts from Stack Overflow or by sunil.nishad87
Published on 2011-01-13T07:31:00Z Indexed on 2011/01/13 8:53 UTC
Read the original article Hit count: 233

Filed under:
|

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:

User-defined type not defined.

Here is my 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

How can I solve this error?

© Stack Overflow or respective owner

Related posts about windows-7

Related posts about vb6