I've declared an Enum in a module called Globals as follows:

VB Code:
  1. Public Enum PowerSupplies As Integer
  2.         Remote
  3.         Panel5V
  4.         Panel24V
  5.     End Enum

I'm trying to use this in a property in a public class (called 'CANN' as follows:

VB Code:
  1. Public Property PowerSupply() As PowerSupplies
  2.         Get
  3.  
  4.             Return mPowerSupply
  5.         End Get
  6.         Set(ByVal PowerSupply As PowerSupplies)
  7.             mPowerSupply = PowerSupply
  8.         End Set
  9.  
  10.     End Property

I get an error - "'PowerSupply cannot expose a Friend type outside of the public class 'CANN'".

Does anyone have any idea why this doesn't work for me? If I declare the Enum inside the class it's fine, but it doesn't seem to work with it declared (even as Public) in another module.