'My Class Module contains this properties

Private WithEvents ocTextBox As TextBox

Public Property Set TextBox(ByVal vData As TextBox)
Set ocTextBox = vData
End Property

Public Property Get TextBox() As TextBox
Set TextBox = ocTextBox
End Property

When i compile this(DLL) it is giving the following error:

Private object modules cannot be used in public object modules as parameters or return types for public procedures as public data members,or as fields of public user defined types.