Have you ever copied a button and found that when a user presses it, the form closes immediately afterwards? We are here to answer:
Why does this button close my form?
The reason the form closes is that the Button…
Read More
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…
Read More
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…
Read More
A problem you may face when creating Graphical User Interfaces (GUI) is preventing users from clicking a button multiple times.
It is helpful for our users to learn how to handle this situation. In the following sample, we have a…
Read More
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…
Read More