Thursday, November 5, 2015

Controls and Coding

11/5/2015

Two types of Controls:


  1. Intrinsic (Basic set of controls)
  2. Custom controlled (Exist as separate file)
Intrinsic Controls:






Custom Controls:



The ImageList control acts as a storehouse for images that are referenced by index. It acts as a central repository to supply images to other controls. The images are added at design time and run time.
The TreeView control displays a hierarchical list of node objects. It is possible to manipulate these node objects at run time.
The ListView control displays the items in one of the four views, namely, large icons, small icons, list, and report.
The ToolBar control contains a collection of button objects and these objects are used to create a toolbar for a VB application. It helps to display the appropriate icons on the buttons by using the Imagelist control.
The StatusBar control provides a frame at the bottom of an application. It displays the status information.


ControlArray:??? Prpvide more analysis results

- Control array is a group of controls that shares the same name, type, and event procedures.
Each control of a control array is referred by an index.

- A control array composed of more than one type of element (textboxes and labels) cannot be created. When you format one control, for example, changing the BackColor property, then that format is applied to all other controls in the array.




Load and Unload methods are used to add or remove elements to/from Control Array.

Count, Item(index), Ubound, and Lbound are the methods available to access a control array.

The Count method returns the number of elements in a control array. The Item(index) method returns the element of the specified index. The Ubound method sets the upper bound of a control array. The Lbound method sets the lower bound of a control array.

Remove, Add(used to add a control), TypeOf, TypeName.... could be applied on the control array.


No comments:

Post a Comment