>When compiling program I get the message "User defined type not defined" on the following line:
>
>Dim MySystemMessages As New SystemMessages
It's because VB doesn't recognize what is SystemMessages.
If you want to access an object, you have to create a reference to that object in the Project/Reference menu.