ListView Sample Applications

 

The following sample applications are included when you purchase the VB 2010 Tutorial Download Package or the VB 2010 "Extra" Sample Applications from The VB Programmer.

 

1. Daily Menu Planner

This is an enhancement of the Daily Menu Planner sample application that was presented as a programming example using ListBoxes. In this application, ListViews have replaced ListBoxes. As the user makes food choices for each meal, a running subtotal of the food statistics (calories, fat, carbohydrates, protein, and cholesterol) is presented in the Summary section on the lower half of the screen. An enhanced report is generated using the PrintDocument object.

 

 

 

 

2. Editable ListView

 

The ListView does not allow the user to edit data within its cells. This example shows how you can use the technique of using a "floating" control (TextBox, ComboBox, or DTPicker in this example) to edit any cell of the ListView.

 

The screen-shots below show the editing of a text field, drop-down option field, and date field respectively.