Are you setting the SelectedImageIndex property of the node as well? If that doesn't work, you can set the Treeview's selected node property to the node that you are currently on.
Jacob A. Grass > -----Original Message----- > From: Steve Ghattas-Smith [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 25, 2002 6:17 PM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] Treeview refresh problem > > > I'm using a System.Windows.Forms treeview control and am > having problems > with forcing redraws. What I want to do is change a nodes image when > clicked on by changing its image index within the treeview > control's mouse > down event, so that I can emulate checkboxes on just certain > levels in the > tree. The redraw doesn't happen until I select another node > - which is > not ideal. I've tried using the control's Invalidate and > Update methods > to force a redraw without luck. Any ideas? > > You can read messages from the Advanced DOTNET archive, > unsubscribe from Advanced DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.