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 […]
Category: Spotlight on Controls
PowerShell GUIs: Where do I start?
Follow @juneb_get_help I’ve been using Windows PowerShell since the very first version of Monad in 2005, but PowerShell-based applications with a graphic user interface (GUI) are a whole new world. Instead of thinking of cmdlets and parameters or properties and methods, you need to think in object events. And because there’s no console with .ps1xml-directed […]
PowerShell Studio: Knowing when to use STA mode
Follow @SAPIENDavid Recently, on our forums, a user asked why certain controls didn’t function correctly or threw an error when he unchecked the STA option in PowerShell Studio. STA (Single Threaded Apartment) and MTA (Multi-Threaded Apartment) determine how a process manages legacy COM objects and their communication with multiple threads. I will not go into […]
PowerShell Studio: Initializing my GUI controls
If you are working with a GUI script within PowerShell Studio and find that you need to edit the exported script to modify the control’s initialization, then you are doing something wrong. Don’t get me wrong, modifying and initialization of control properties is not the issue; in fact that it part of writing a GUI. […]
Spotlight on the ToolTip Control
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 […]
New Control Set: TextBox – Watermark
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: […]
Spotlight on Controls: The Versatile Tag Property
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 […]
Spotlight on the StatusStrip Control
The “Spotlight on Controls” series focuses on a single WinForms control in PowerShell Studio 2012, 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. Note: The StatusStrip control is only available for […]
WinForms Interactive Reference Guide for PowerShell
Not long ago we released the WinForms Control Reference for PowerShell. We have taken the Reference a step further by creating an interactive version! The Interactive Reference allows you to display help information by clicking on a control in the Toolbox: For those of you who like reading on paper, you have the option to […]
PowerShell Studio: New ProgressBar Control
In the last service release of PowerShell Studio 2012 (v3.0.8) a new custom control called ProgressBarOverlay was introduced. This new progress control functions exactly like the typical progress bar, with the added ability of displaying a text percentage over the progress bar. Adding a ProgressBarOverlay Control: Like the typical progress bar, you can add the […]