Posts Tagged ‘Tag’


Spotlight on Controls: The Versatile Tag Property

Thursday, May 23rd, 2013 by David Corrales
You may not be aware that each WinForm Control has a Tag property which can be very useful in certain circumstances. Why use the Tag Property? Use the Tag property when you need to associate an object or store state information to a particular control. This ability to assign any object to the property, be it a control, value, psobject or scriptblock, is what makes the property so versatile. Below are examples demonstrating how the Tag property can be used in GUI scripts.   Example 1: The Tic Tac Plebius PowerShell game is a good example of how the Tag…   More »