Results 1 to 4 of 4

Thread: MSCOMCTL version problem

  1. #1

    Thread Starter
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    MSCOMCTL version problem

    I'm using version 6 in my Project. Now i've add 5 cause i need XP look in LV. But whenever i try to add a ListItem, i get a 'Type mismatch' error:
    Code:
    Set lvwListItem = myLv.ListItems.Add
    It seems that versions are "fighting", and since 6 is newer, it doesn't allow 5 to be used. How can i use version 5?

    -gav

  2. #2

  3. #3

    Thread Starter
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: MSCOMCTL version problem

    In next few lines that are not relevant here because error is caused by this one. However, it works fine when i try your code in a new Project. But it doesn't work in mine. Perhaps i should remove all dependencies and add ver. 5 first.

    Meanwhile, i have solved it so it works withouth declaring ListItem at all - just by accessing .Text and .SubItems() via LV. However, i'm still interested in the "ListItem" solution.

  4. #4

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