Posts Tagged ‘WinForm’


 

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 »

PowerShell Scoping – Revisited

Wednesday, April 10th, 2013 by David Corrales
Yes, we said we would not speak of it again, but a user post provided a good example of the change in scoping rules between PowerShell V2 and V3. This particular user had a question about GUI controls on our new PowerShell GUIs forum and provided an example GUI script. In the example, the user declared a function inside an event script block: $OnLoadFormEvent={ #TODO: Initialize Form Controls here $t = dir c:\PowerShell\ $t2 = dir c:\Scoping\ function outTextBox1($textOut) { $richtextbox1.Text = $richtextbox1.Text + $textOut } } This script block is called when the GUI Window is about to display.…   More »

Spotlight on the StatusBar Control

Thursday, July 5th, 2012 by David Corrales
The “Spotlight on Controls” series focuses on a single WinForms control in PowerShell Studio 2012, 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 NotifyIcon control. This time we will look at the StatusBar control: StatusBar[System.Windows.Forms.StatusBar] Represents a Windows status bar control. Default Event: PanelClick Why use a StatusBar control? Use the StatusBar control, to display status information to the user. The StatusBar can also be used for user…   More »

Spotlight on the NotifyIcon Control

Tuesday, May 8th, 2012 by David Corrales
The “Spotlight on Controls” series focuses on a single WinForms control in PowerShell Studio 2012, 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 ListView control. This time we will look at the NotifyIcon control: NotifyIcon [System.Windows.Forms.NotifyIcon] Specifies a component that creates an icon in the notification area of the Window’s taskbar. Default Event: MouseDoubleClick Why use a NotifyIcon control? Use the NotifyIcon control, to alert users of special…   More »

Spotlight on the ListView Control – Part 3

Wednesday, April 11th, 2012 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. In Part 2 of the Spotlight on the ListView Control, we covered the control's properties as well as most of the methods and events. In part 3 we will cover how you can sort items and utilize various helper functions. Sorting ListViewItems: The ListView supports basic sorting, but it only handles sorting by…   More »

Spotlight on the ListView Control – Part 2

Thursday, April 5th, 2012 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. In Part 1 of the Spotlight on the ListView Control we discussed a number of important properties. Here, in Part 2, we complete our look at the control's properties and we will also cover some of the more important methods and events. Important Properties Continued: Items This property contains a collection of all…   More »

Spotlight on the ListView Control – Part 1

Wednesday, April 4th, 2012 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 ContextMenuStrip . This time we will look at the ListView control: ListView [System.Windows.Forms.ListView] Represents a Windows list view control, which displays a collection of items that can be displayed using one of four different views. Default Event: SelectedIndexChanged Why use a ListView control? The ListView…   More »

PrimalForms 2011: Spotlight on the ContextMenuStrip Control

Friday, December 16th, 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 TreeView . This time we will look at the ContextMenuStrip control: ContextMenuStrip [System.Windows.Forms.ContextMenuStrip] Represents a shortcut menu. Default Event: Opening Why use a ContextMenuStrip control? Use the ContextMenuStrip when you want to display a menu of commands when the user right clicks on a specific…   More »

Holiday Packaging Comes in Many (Primal)Forms

Tuesday, December 6th, 2011 by Robert Morey
It’s all about getting what you want this holiday season. You want the best PowerShell development environment on the market and you want to treat yourself to a $50 shopping spree on Amazon (trust us, you do!). Just purchase PrimalForms 2011 for $299 during this month of December and we will send you a gift code for $50 which you can use to buy whatever you want on Amazon.com. Even if that means spending your well-deserved gift on a significant other, your family, or sharing your wealth with a non-profit organization. It’s your choice but you really, really want PrimalForms…   More »

PrimalForms 2011: Spotlight on the TreeView Control – Part 2

Wednesday, November 23rd, 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. In Part 1 of the Spotlight on the TreeView control, we looked at the TreeView properties, methods and event. Now we will focus on the TreeNodes and the TreeView’s Nodes property. TreeView Nodes Property Revisited: The TreeView keeps track of its nodes via the Nodes property, which consists of a collection of TreeNode objects.…   More »