Posts Tagged ‘PrimalForms’


PowerShell Studio: Ambient properties

Tuesday, January 7th, 2014 by David Corrales
In the PowerShell Studio: Enable and Disable Groups of Controls article we discussed how you can enable or disable group of controls by setting the parent control’s Enable property. Now we will look at other properties that have a similar trickle down effect, but work fundamentally in a different fashion. For example, if you change the font of the Form control, you may notice that all the controls within the form change their fonts accordingly. These trickle down properties are known as ambient properties. Ambient properties are properties that if not individually set, take their value from the parent control.…   More »

Jazz up your VBScripts with PowerShell and Windows Forms

Tuesday, March 12th, 2013 by Alex Riedel
Sure, you are supposed to write all new scripts in PowerShell. Some say you can replace any VBScript with a single line in PowerShell. But the truth is, many of you still have to maintain, develop and debug scripts written in VBScript. Some of our customers also have to maintain VBScript or JScript files that run under a custom host, automating some server application that likely will never be changed to use PowerShell. And, judging from some emails we get, you cast a jealous look at this new fangled Windows Forms stuff the PowerShell crowd uses to make great tools.…   More »

PowerShell Studio: Enable and Disable Groups of Controls

Tuesday, February 12th, 2013 by David Corrales
If you follow the Spotlight on Controls series you might be familiar with the Enable property that is shared by all WinForms controls. This property allows you to disable controls so they no longer can be interacted with. For example, after pressing a button that triggers a Job, it is necessary to disable the button in order to prevent the user from pressing it again until the Job completes. Some instances might require you to disable a group of controls. In this case, your code may look like the following:$buttonAdd.Enable = $false $buttonRemove.Enable = $false $comboBoxOptions.Enable = $false This list…   More »

WinForms Interactive Reference Guide for PowerShell

Thursday, September 6th, 2012 by David Corrales
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 print the reference page: Easy access to the Spotlight on Control Blog Articles using Help Menu:   How do I download the WinForms Interactive Reference? The WinForms Interactive Reference is available only to registered users. To download,  log onto your MySAPIEN account and click on…   More »

WinForms Control Reference for PowerShell

Tuesday, July 17th, 2012 by David Corrales
We are happy to release the “WinForms Control Reference for PowerShell” guide. This guide provides you with a quick reference for the WinForm controls in PowerShell Studio. The document contains a list of all the important properties, methods, and events that you should be familiar with when creating GUIs in PowerShell.   How can I get the reference guide? There are two ways to access the reference guide: 1. SAPIEN Document Explorer The guide will be included in the next service release of the SAPIEN Document Explorer (installed with PowerShell Studio). In addition, you will be able to access the…   More »

PowerShell Studio: Creating Responsive Forms

Wednesday, May 16th, 2012 by David Corrales
When working with GUIs you may have noticed that the Form can freeze when running long scripts. Previously I discussed how to make your loops more responsive in this article, but not every long script comes in the form of a loop. If you truly want to make your forms responsive, you will need to move these slow scripts into another thread and in the PowerShell world this means using jobs. For those of you who aren’t familiar with PowerShell Jobs, they allow you to run scripts while freeing up the console to perform other tasks. In this case it…   More »

Service Release (4/10/2012)

Thursday, May 10th, 2012 by David Corrales
New versions of PrimalScript, PowerShell Studio, PrimalSQL, PrimalXML, PrimalForms and ChangeVue are available. Registered users can download the latest service builds from MySAPIEN. Release Notes: 2012 Versions: PrimalScript 2012 v6.5.125 - VBScript debugger fails on 32 bit only machines- "Search again" renamed to "Repeat last search"- Encoding displayed for embedded VBScript file in WSF- Erroneous SaveAs dialog when closing embedded script without saving- "Toggle outline" not available or functional  on last line of region- Cursor moves to a wrong place when inserting a multi-line snippet- Change marker is moving with inserted empty lines- Opening an embedded file shows all lines…   More »

PowerShell Studio 2012: What’s New? (Part 5)

Thursday, May 3rd, 2012 by David Corrales
Last time we looked at the new script editor features. Now we will take a look at the new Function Explorer as well as other additions. Function Explorer The new Function Explorer displays a list of all the functions and events within the current script file: If you are working within a Project, the available functions declared in other files will also be displayed. Navigating with the Function Explorer: Just by a simple double click on the function or event, it will take you directly to the declaration of the function. This becomes invaluable when dealing with scripts with a…   More »

PowerShell Studio 2012: What’s New? (Part 4)

Tuesday, May 1st, 2012 by David Corrales
Last time we looked at the new Control Sets. Now we will take a look at the new Script Editor features: Improved Syntax Coloring PowerShell Studio 2012 now colors cmdlet and functions parameters: Convert Cmdlet & Aliases Using the Context Menu or the Keyboard Shortcut you can convert your Cmdlets and Aliases. You can also convert from parameter aliases as well.   Improved PrimalSense PowerShell Studio’s PrimalSense has also been greatly improved to increase your scripting productivity. Improved Parameter PrimalSense Support:   Improvements include PrimalSense completion for Enumerators and Special Types: Enumerator Code Completion:   PrimalSense for Special Types: PowerShell…   More »

PowerShell Studio 2012: What’s New? (Part 3)

Thursday, April 26th, 2012 by David Corrales
Last time we looked at the new Styles. Now we will take a look at the next major designer feature: Control Sets Control Sets are essentially custom controls that you can drag and drop from the Toolbox Panel into the designer like any other ordinary form control. They are made up of either single or multiple controls with predefined properties, events and functions. You can access the control sets in the Toolbox Panel under the “Control Sets” tab: PowerShell Studio 2012 comes with a number of predefined Control Sets that you can immediately use in your forms. Sample Control Sets:…   More »