I want to open a part of my TreeViewControl (or somethime all the subtrees). I need a possibility to do more with the control as the function TreViewControl(). Has somebody examples with treeviewcontrols?
Try putting in a list check with the expand nodes option turned on. Since you don't really want to do a check, capture Testvalue() at the beginning of the ListCheck and reset TestValue to the previous value afterwards (to ensure that you don't alter pass/fail of your test based on using the check for a purpose other than verification).
Note that if you use the Expand Nodes option against something that includes recursive nodes or against something like Explorer connected to a WAN, you could be there forever. It's pretty much impossible to stop, short of Ctrl-Alt-Del.
Thank´s, your example works perfect. One more question. In my TreeView-Control the name of items change during a test. e.g. You click on the Item named "New Query" and then do something, the system will change the name of the item to "New Query (1)". So the next time your script fails. How would you solve this problem.