Does your version of VB include the ActiveX Control Interface Wizard? If it does, use it. Its a big help when creating user controls. Here is the code the wizard generates to implement the List properties.
VB Code:
'WARNING! DO NOT REMOVE OR MODIFY THE FOLLOWING COMMENTED LINES! 'MappingInfo=List1,List1,-1,List Public Property Get List(ByVal Index As Integer) As String List = List1.List(Index) End Property Public Property Let List(ByVal Index As Integer, ByVal New_List As String) List1.List(Index) = New_List PropertyChanged "List" End Property




Reply With Quote