locked
VCFilter.Filters Property (VB 2010) counting wrong vcfilter value. Adding values from sub folders RRS feed

  • Question

  • VC Project -

    --Source 

    ---Folder1

    ---Folder2

    ---Folder3

    VS 2010 should count Filter value for VC Project as 3 (Source, Header, resource) but its adding 3 more VCFilter of Source directory (Folder1, Folder2, Folder3) and showing total 6 Filters .... any idea what's wrong?

    Code

    Private Shared Sub ListItems(ByVal item As VCProjectItem,

    Dim myColFld As IVCCollection = Nothing

    myColFld = item.Filters



    • Moved by Mike Feng Wednesday, August 17, 2011 11:45 AM VSE (From:Visual Basic General)
    Monday, August 15, 2011 12:17 PM

Answers

  • I Mike,

    In a very had way i found that its bug in VB 2010 where its counting wrong Filters. I canged the logic of My code to make it working.

     

     

    Cheers,

    Neeraj

    • Marked as answer by Yi Feng Li Tuesday, August 23, 2011 8:26 AM
    Thursday, August 18, 2011 11:22 AM

All replies