Posts Tagged ‘Controls’


 

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 »

PrimalForms 2011: Getting Form Control Help

Monday, April 9th, 2012 by David Corrales
Frequently users wonder how they can get help for form controls and discover all the properties, methods and events they can use. In this article we will cover a number of ways to access information about Form controls. Spotlight on Control Articles: You can find help of the Form controls right here on our blog. The Spotlight on Controls series covers individual Form Control and list the important properties and methods as well as code samples written in PowerShell. MSDN Library: The primary resource for .NET help is the Microsoft Developer Network (MSDN) Library. The MSDN is an invaluable resource…   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 »

PrimalForms 2011: Spotlight on the MaskedTextBox Control

Tuesday, September 27th, 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 ErrorProvider control. This time we will look at the MaskedTextBox control: MaskedTextBox Control [System.Windows.Forms.MaskedTextBox] Represents an enhanced text box control that supports a declarative syntax for accepting or rejecting user input. Default Event: MaskInputRejected Why use a MaskedTextBox control? Use the MaskedTextBox to distinguish between…   More »