The item cannot be public in this type of project and will be changed to private.
Visual Basic changes some items to private in order to avoid inconsistencies in the project. For example, if Visual Basic detects that the project has a public class module but the Project Type is set to a type that doesn't support public class modules, the public class module will be changed to private.
This error can occur if any of the files in the project have been modified in an editor other than Visual Basic. For example, Visual Basic detects that Standard Project Executable owns public class modules while this type of project allows only private class modules.