The recent PowerShell Studio service builds include some changes to improve the handling of the WebView2 control. This article details the changes made and provides an overview of loading the control in PowerShell Studio’s designer.
Setup
To load the WebView2…
Read More
As a follow-up to our Advanced PowerShell Functions: Begin to Process to End article, the following article will dive deeper into the CmdletBinding attribute.
Let’s start with defining a function:
Function Test-ScriptBlock
{
[CmdletBinding()]
Param
(
[Parameter(ValueFromPipeline)]
[int[]]
$Numbers…
Read More
Using the project functionality in PowerShell Studio makes it easier to manage multi-file scripts, create multi-form GUIs, and create script modules.
To create a new project in PowerShell Studio, open the File menu, select the New tab, then select Project:…
Read More
With the latest service build of PowerShell Studio (5.8.201), we have added a new control—WebView2—to our Toolbox pane along with a new file template. The WebView2 is a modernized, updated control of the WebBrowser control. WebView2 uses Microsoft Edge (Chromium)…
Read More
Crash bugs are generally spectacular; your application just—poof—vanishes! Or it shows error messages from the OS in foreign languages or with some indecipherable codes. Or maybe it generates 17 entries in the Windows application log. In the worst cases, it…
Read More
You already know that using credentials in your code is very much frowned upon. Every security expert will tell you that there are now plenty of other ways to verify access beyond user IDs and passwords, and you should always…
Read More
PSF files are PowerShell Studio’s Windows Forms (WinForms) files (PowerShell Studio Form). This file contains all the designer and script information in an xml format. Most code in a PSF file should be an event or function. Any code not…
Read More
The Window Forms designer in PowerShell Studio lets you cut (Ctrl+X), copy (Ctrl+C), and paste (Ctrl+V) controls within the current form as well as between other forms. When copying a control, it will retain the properties set on the control.…
Read More
In PowerShell you have two ways of including ‘other’ code in your script. Other code can be someone else’s code, your code from another project, or simply the way you organize your code into different files. Before we dive into…
Read More
No matter how carefully you lay out your plans and craft your code, you will always find situations where you need to hunt for a bug. It can be a simple logic flaw, an ill-placed copy and paste of code…
Read More