Posts Tagged ‘TextBox’


New Control Set: TextBox – Watermark

Wednesday, August 14th, 2013 by David Corrales
Recently in the forums we had a request on how to create a textbox with a watermark. What is a textbox with a watermark you ask? It is a textbox that displays hint information within the textbox using a lighter color. For example, a textbox that accepts a username, may have a watermark as follows: Once a user types in the textbox, the watermark goes away. Typically a C# developer would create this control by creating a new class that inherits the original textbox control. Next they would override some paint events and add custom members to keep track of…   More »

Spotlight on the TextBox Control

Monday, June 13th, 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 post describes the Textbox control. TextBox [System.Windows.Forms.TextBox] Creates a text box for displaying text…   More »