views:

3526

answers:

2

How do i make the plus minus icons bigger in the tree view in C# .net with out making visual styles disable.

+2  A: 

I don't think you have any control about it. The only thing you can do is override the DrawNode event and paint the nodes yourself.

First you need to change the DrawMode to OwnerDrawAll. Take a look at the relevant msdn page, it contains surprisingly much detail: http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.drawnode.aspx

Grzenio
A: 

Bigger than the default 10px or so? I think follow the answer above, but because I came across this while trying to determine how to restore the original size:

Turns out you have some control if you set the indent property - anything less than 10 px starts to shrink the +/- icons. I had a treeview that was being set with an indent of 5, and I found that by restoring it to 15 (or even 10) restored the icon size.

I hope that helps someone else looking for a solution in that area.

serotonin