• TreeView on Userform (VBA (any))

    Author
    Topic
    #410493

    Does anyone have some sample code for populating a treeview and/or an imagelist control on a Userform. My treeview is a list of object names which I can create, but I also want to add an image to each node: a small square which is the same color as the object. For example, I might have a Fruit node which has apples and bananas as children. I want to create a small square at run-time which is colored red for the apple image and yellow for the banana image. I need to create the images at run-time because the user can color the objects with any RGB color before displaying the userform. TIA –Sam

    Viewing 3 reply threads
    Author
    Replies
    Viewing 3 reply threads
    Reply To: TreeView on Userform (VBA (any))

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: