Posted on: 12/31/2014 4:16:08 PM | Views : 532

Hi Forums, 
I know the title is not very good, I am very confused about Enums and Types and passing them around.
I want to have a class / enum object that can return a different enum.
Something like this
Function EnumTest (number as uint16) as ?????
if number = 1 then return EnumType1 else return EnumType2
end function
What ever is returned I need to be able to pass it like this
Dim EnumTest As Type = GetType({in here}) I have written a user control that uses an Enum to populate a listbox with options, but now I want to dynamically and programmiclly pass any Enum to the user control. I dont want one UC per ENUM, I want to pass any enum to the same user control, but the enum is decided on a number of other factors in the same class
I dont really understand this v ...

Go to the complete details ...