Posted on 2010-11-19
I`m using VS2008, C#, 3.5
I`m creating a custom TreeView. I just want to change the way it looks. So I created a gradient background by over riding the OnPaintBackground(PaintEventArgs e). This works great.
Now when I try to create the Nodes. I don`t see anything. But the nodes are present, they just flicker for a second. Also when I click on the TreeView, the nodes are activated. It`s just that I don`t see them.
To draw the nodes I`m using
protected override void OnDrawNode(DrawTreeNodeEventArgs e)
e.DrawDefault = true;
//What goes in here? I might have some wrong code
Help with some code will be greatly appreciated. Thanks - San