title: How to search the text of child nodes within a parent node in a Treeview control in vb.net
body: <p>I have a Treeview control structure which I generate in run time, which adds child nodes with text taken from a textbox to a parent node with the click of dedicated buttons. </p>
  
  <p>Now, as more child nodes are added to a particular parent node, I would like to search the names (text) of previously added child nodes within that parent node with the click of a button to keep the user from adding duplicate nodes with the same name. </p>
  
  <p>If this happens, the user should receive a message that a child node with the same name has already been added to that particular parent node. I have written a code that addresses this issue for child nodes next to each other, i.e. if the user adds a child node called “Frank” to a parent node called “Family” and then tries to add “Frank” again immediately after wards, he/she will get the message that “Frank” has already been added to the “Family” parent node. </p>
  
  <p>My problem is that if the user adds “Frank”, then adds “Shelly”, then “Mark”, then adds “Frank” again, he/she will not get the message. What is the best way to solve this problem?</p>