You have the startup form set to Sub Main, and you have a module, form, project, or type named "Main" which prevents the Sub with the same name from being called.
Rename the module, form, project, or type.