tags:

views:

736

answers:

3
+2  Q: 

TreeView + sign

Hi,

I have treeview with 1 main node and several sub-nodes,

How can I hide the + sign in the main node?

Thanks,

+6  A: 

Treview Property: .ShowRootLines = false

When ShowRootLines is false, the Plus/Minus sign will not be shown for the root node, but will still show when necessary on child nodes.

With the Plus/Minus sign hidden, you might consider executing the Expand() method of the root node once the tree is populated. That will make sure that the root node shows all first-level child nodes.

Note: There is a ShowPlusMinus property on the TreeView, but it works on all nodes.

Doug L.
Oops, thanks. I need intelesense :)
Doug L.
A: 

See the TreeView::ShowExpandCollapse property. Set it to false to disable the expand/collapse node indicators.

A: 

How do i increase the plus and minus icons size (to use the application on the touch screen) without disabling microsoft visual styles?