Thank you for the suggestion; however, I receive an error at the following line of the code:
true).Selected = true;
NullReferenceException: Object reference not set to an instance of an object.
When I comment out the "else" section, the code runs and the first treenode containing the searchString is selected. Subsequent searches find the same treenode, not the next node that contains the searchString.
Does the FindNodeByText only try to match the string with the beginning of the node text, or if a node contains the string should it be found? Does it act like: TreeNode.Text = string, TreeNode.Text.StartsWith(string), TreeNode.Text.Contains(string)?? If it behaves like the first or second situation then that might be why I am experiencing this issue, as the text I am searching for is not the leading part of the TreeNode.Text, nor does it match the TreeNode.Text perfectly. I also added the TRUE option to the FindNodeByText function to ignore case when searching.