I need some help with the Tree View control. I set the properties so that the nodes have check boxes next to them.

When the parent node is checked, I want all the child nodes of that parent to be checked. Same with unchecking them. I won't know for sure how many child nodes there are. How do I do this in code, and do I do it in the NodeCheck event?

Some sample code would be a great help. Thanks.