How can I add checkbox to Solution Explorer tree items? RRS feed

  • Question

  • I already asked ownerdraw of solution explorer, but nobody answers. :(
    How can I add checkbox to treeitem of solution Explorer?
    Wednesday, July 2, 2008 8:00 AM


  •  Unfortunately, this isn't possible. The Solution Explorer is a VsUIHierarchyWindow (which is essentially a COM wrapper around a Win32 treeview control. You can change the iconic representatio of the item if you are the project implementor. There is no supported scenario that will let you go back and change the underlying style of the control to add checkboxes to the items displayed in the VsUIHierarchyWindow.

    The closest you can get is to change up the iconic representation of the item, by using glyphs. An example of this are the glyphs used by source code control to denote if the item is checked in or out of source code control. But even there, you have to be the project implementer to make use of that customization.

    The only other option I can think of is to build your own toolwindow separate from the Solution Explorer.

    Ed Dore
    Wednesday, July 2, 2008 4:47 PM