Results 1 to 2 of 2

Thread: error user-defined type not defined : MSComctlLib

  1. #1

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    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?

  2. #2
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,666

    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).

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width