Posts Tagged ‘ProgressBar’


 

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 »

PrimalForms 2011: Creating Responsive Loops

Friday, July 15th, 2011 by David Corrales
In the PrimalForms: Preventing Multiple Button Clicks blog article, we introduced the [System.Windows.Forms.Application]::DoEvents method, which allows the application to process form events. This method also becomes very useful when you have a script that runs through a long loop. Here is a sample loop with a progress bar you may encounter in your script:$buttonProcessLoop_Click={ #Reset the Progress Bar $progressbar1.Value = 0 for($i = 0; $i -lt $progressbar1.Maximum; $i++) { #Simulate work sleep -Milliseconds 200 #Step the progress bar $progressbar1.PerformStep() } } When we click the button, the script will go through a loop a number of times and step the…   More »

PrimalForms 2011: Spotlight on the ProgressBar Control

Thursday, July 14th, 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. Last time we took a look at the RadioButton control. This time we will look at the ProgressBar control: ProgressBar Control [System.Windows.Forms.ProgressBar] Represents a Windows progress bar control. Default Event: Click Why use a ProgressBar control? Use a ProgressBar when you need to show the user that progress is being made in some…   More »