Posts Tagged ‘control’


PowerShell Studio 2015 – New FolderBrowserModernDialog Control

Friday, May 1st, 2015 by David Corrales
With release of the v4.2.83 build of PowerShell Studio 2015, we introduced new features that we are covering in detail over a series of articles. This next new feature was also added in response to user feedback. This particular user wanted to use the modern version of the folder browser dialog that is available in the later versions of Windows. Unfortunately, the user had to manually add code to the form to accomplish this. Therefore we added a new control to our toolbox: FolderBrowserModernDialog This control will display the modern version of the FolderBrowserDialog on Windows 7 or greater: If…   More »

Spotlight on the ToolTip Control

Thursday, January 30th, 2014 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 ToolTip control. ToolTip [System.Windows.Forms.ToolTip] Represents a small rectangular pop-up…   More »

PowerShell Studio: New ProgressBar Control

Monday, August 27th, 2012 by David Corrales
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 new progress bar control using the ToolBox Pane:   The new control offers full designer support as you would expect from a normal progress bar:   Displaying Percentage: By default, the ProgressBarOverlay control displays the current percentage. This value is calculated using the progress bar’s…   More »

Single form or multiple dialogs?

Monday, June 11th, 2012 by Alex Riedel
In this installment of our series about user interface design for administrators we explore the transformation of a command line script to a Windows application. We start with a simple little script as shown below: It just prompts for a computer name on the command line, uses that information for WMI query and outputs the result to the console. Your existing command line scripts may just use a parameter instead of a prompt but that makes no difference for the purpose of this article. It follows, like most scripts, a basic Input-Processing-Output pattern. If you have previously used VBScript you…   More »

User interface design for administrators

Monday, June 4th, 2012 by Alex Riedel
This post is the first in a series describing some fundamental design guidelines. Software developers usually have some kind of training in designing user interfaces or they benefit from having a specially staffed department for this task. Administrator usually don’t have the time and don’t get paid to attend UI design classes or study on their own. So we thought we put a series of articles together which outline some basic good practices and teach some general rules about which control to use for what. Let’s start with the most basic controls and see what they are for:    …   More »