I am not sure that the OCX treeview can specy checkbox for specific nodes. This article (
http://www.mvps.org/btmtz/treeview/) suggests that an IE treeview (I have seen ones that refer to C# treeview) or any treeview that has a hWnd for each node (as opposed to an index) would allow node specific treeviews.
You could use the parent nodes check box to "check all" or "uncheck all" the child node check boxes.
>Hi Everyone,
>
>I have a treeview control which all the nodes are in 2 levels only.
>The 1st level is the parent and the 2nd level are the children.
>I set all the nodes to be checkbox.
>Anybody knows how to set the parent not to have a checkbox?
>
>Basically, I wanted all the parents not to have a checkbox and all the children to have a checkbox.
Imagination is more important than knowledge