Posts Tagged ‘TreeView’


PrimalForms 2011: Spotlight on the TreeView Control – Part 2

Wednesday, November 23rd, 2011 by David Corrales
The “Spotlight on Controls” series focuses on a single WinForms control in PrimalForms 2011, details the important Properties, Methods, and Events of the control and demonstrates how to utilize the control. Most of the information about the controls is still applicable to previous versions of PrimalForms. In Part 1 of the Spotlight on the TreeView control, we looked at the TreeView properties, methods and event. Now we will focus on the TreeNodes and the TreeView’s Nodes property. TreeView Nodes Property Revisited: The TreeView keeps track of its nodes via the Nodes property, which consists of a collection of TreeNode objects.…   More »

PrimalForms 2011: Spotlight on the TreeView Control – Part 1

Monday, November 14th, 2011 by David Corrales
The Spotlight on Controls series describes the controls, that is, the objects in the System.Windows.Forms namespace, so you can use them effectively when building GUI apps in PowerShell Studio and PrimalScript. Each post focuses on one control and lists its most important properties, methods, and events, including the default event that PowerShell Studio adds to your script when you double-click the control. The posts include many examples written in Windows PowerShell, so you can use them right away. Read more: Spotlight on Controls: Common properties and methods This two-part post describes the TreeView control. Part 1: TreeView Overview Part 2: TreeNode…   More »

Up another PowerShell Tree

Monday, April 6th, 2009 by Jeffery Hicks
A few weeks ago I posted a PowerShell script that created a directory tree, like the TREE command from the CMD shell. Then while testing something new in PrimalForms, I realized I had a literal form object, a tree view, that I could use. So I put together a short script that creates a graphical tree for a given directory, along with the file counts and sizes from my original scripts. As a bonus, because I now had a graphical interface I could do things such as display empty folders in a different color. The script not only gives you a handy tool but also serves as a demonstration on how to use a TreeView control.   More »