CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2018

    Adding a BackgroundImage to a TreeView


    I am trying to add a BackgroundImage to a TreeView. It looks like the only way this will work is to Inherit from TreeView and override OnPaintBackground(System.Windows.Forms.PaintEventArgs pevent). If I do this it works, but the nodes don't get drawn. Even though the code that sets the StateImageIndex is getting executed. I assume that I must do all the node drawing myself as well? Does anyone have an example they can show me?

  2. #2
    Join Date
    Jul 2001
    Sunny South Africa

    Re: Adding a BackgroundImage to a TreeView

    Could you show us your code?

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