Hiding TreeNodes in C#

In a recent project, I was building out a TreeView control that could be searched and filtered. One of the primary problems was that there was no proper way to hide a TreeNode temporarily. The solution was fairly simple, though, and performed very well. 1. I started by created a new class that extended the base TreeView…