'ParentFormID' cannot expose type 'Module1.ParentFormIDEnum' outside the project through class 'MyClass'.
Here is the related code:
Enum ParentFormIDEnum As Integer POReceiving = 1 Production = 4 Returns = 5 End Enum
End Module
Public WriteOnly Property ParentFormID() As ParentFormIDEnum Set(ByVal value As ParentFormIDEnum) miParentFormID = value End Set End Property
End Class
I'm not sure what this error means. All I'm trying to do is create a global enum and be able to use it in all areas of my program.
I do not recommend using modules! This was left for backward compatability. You should use shared classes. In the case of your enum, just move it outside of the module and it will reside as its own public enum: