error user-defined type not defined : MSComctlLib
Hi
When I tried to compile a old projetc made in vb5 in the vb6 show me errors like in the subject, I believe to be a Listview, I do not know becacuse when see form show me a picturebox
the code error is in
Code:
Private Sub lvLOV_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)
If lvLOV.SortKey = ColumnHeader.index - 1 Then
lvLOV.SortOrder = IIf(lvLOV.SortOrder = lvwAscending, lvwDescending, lvwAscending)
End If
lvLOV.SortKey = ColumnHeader.index - 1
End Sub
I tried to change references in vb project and form to control
Object={86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCT2.OCX
no work
Any tips for me to get around this error?
Re: error user-defined type not defined : MSComctlLib
Common Controls 5.0:
Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0; COMCTL32.OCX
Common Controls 6.0:
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX
VB6 can work with both.
I prefer to use Common Controls 5 because they can be themed (unlike Common Controls 6).