'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.
Public NotInheritable Class MyModuleClass
'-- A private constructor keeps someone from accidentally trying to create an instance of this class Private Sub New() End Sub
'-- All of your methods and fields are then marked with "Shared" Public Shared Function MyFunc(ByVal value As String) As String '-- Parse the value End Function
'-- When you access these Shared methods and fields, you access them like this:MyModuleClass.MyFunc("test") '-- you use the ClassName. syntax and you get all of the shared methods on the class
Hiya.
Having a sealed class being a container for methods, I might need to write many "Imports" on the top of it for all the methods that will be in the class.
Would this be a bad practice?