Hi Guys, Having a problem with a UDT. I have the following :

Code:
Public Type mUdtObjInfo
    A    as string
    B    as string
    C    as string
    D    as string
End Type

Public Type myInfo
    ObjInfo    as mUdtObjInfo
    PosX       As Integer
    PosY       As Integer
End Type
Ok these work fine and are declared in a Module. However, when I try and access/Pass them through a Custom User Control, such as:

Code:
Public Function EditCurrent() As myInfo
EditCurrent = theOne(m_Selected)
End Function
I get an error:
"Only public user defined types defined in public object modules can be used as parameters or return types for public procedures of class modules or as fields of public user defined types"

I've searched around and have tried Declaring it as a Friend instead of Public, but still no result. I've tried putting all of this in a Class and still same.
I read that you could get away if you add these in a .TLB or ActiveX/Dll:

Check this link:

Any ideas?