/// <summary> /// Selects the first node containing the specified text. /// </summary> /// <param name="nodeText">The text to search for.</param> public void SelectNode(string nodeText) { TreeNode result = RootNodes.Find(nodeText, searchAllChildren: true).FirstOrDefault(); if (result != null) { printDrivers_TreeView.SelectedNode = result; printDrivers_TreeView.Select(); } }