-
October 11th, 2021, 10:26 AM
#1
Adding a BackgroundImage to a TreeView
Hi,
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?
-
November 26th, 2021, 06:46 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|