Treeview background image

  • Thread starter Thread starter PatrickS
  • Start date Start date
P

PatrickS

I'd like to be able to give a treeview in my application a nice smooth
gradient as a background image, but I'm having trouble doing this. Webpages
that I've seen so far seem to suggest using the BackgroundImage property, but
this does not seem to work. I'm using C# Express 2008.

Does anybody here have any solutions?
 
Unfortunately I don't believe that spending the sort of money they appear to
be asking for is an option.

(and would be like taking a sledgehammer to a nut given that all I want to
do that's out of the ordinary at this stage is set the background image and
they only seem to be selling an entire suite of controls)
 
It seems that the following line of code will allow the BackgroundImage value
to be respected:

this.SetStyle(ControlStyles.UserPaint, true);

However now the nodes are not being displayed. It's as if the background is
actually being displayed over them. I guess a bit of further investigation
would not amiss. Thank you for the tip though.
 
Hi Frank,

Can you share your UltraTree from Infragistics,
with me? I just want the UltraTree control.
Thanks for your help.

Rdgs,
Sam
 
Back
Top