Archive for the ‘Spotlight on Controls’ Category


 

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 »

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 »

PrimalForms 2011: Spotlight on the TreeView Control – Part 1

Monday, November 14th, 2011 by David Corrales
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 most important properties, methods, and events, including the default event that PowerShell Studio adds to your script when you double-click the control. The posts include many examples written in Windows PowerShell, so you can use them right away. Read more: Spotlight on Controls: Common properties and methods This two-part post describes the TreeView control. Part 1: TreeView Overview Part 2: TreeNode…   More »

PrimalForms 2011: Spotlight on the TabControl

Friday, October 28th, 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 MaskedTextBox control. This time we will look at the TabControl control: TabControl [System.Windows.Forms.TabControl] Manages a related set of tab pages. Default Event: SelectedIndexChanged Why use a TabControl control? Use the TabControl when you wish to present a series of related controls that are separated into…   More »

PrimalForms 2011: Spotlight on the ImageList Control

Wednesday, October 19th, 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 MaskedTextBox control. This time we will look at the ImageList control: ImageList [System.Windows.Forms.ImageList] Provides methods to manage a collection of Image objects. Default Event: N/A Why use the ImageList control? Use the ImageList to store a group of images that can be accessed by other…   More »