Frans
Tue Jun 28 11:28:51 CDT 2005
wgillin wrote:
> Thanks Frans. I tried this but the entire control is still
> invalidated. The code I am using to toggle the background is:
>
> this.FlaggedNode.BackColor = Color.FromName("Highlight");
> this.FlaggedNode.ForeColor = Color.FromName("Window");
>
> Where FlaggedNode is an extended property of the TreeView similar to
> SelectedNode.
>
> The method to change the color is only getting called once while the
> cursor is over the FlaggedNode so it's not a bug with calling the
> method. For some reason the entire control is invalidated rather
> than the node rect and I can't figure out how to override this.
If FlaggedNode is just a TreeNode object, then I don't know what's
happening. I use the same code as you and no flickering.
Frans
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET:
http://www.llblgen.com
My .NET blog:
http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------