Building Client/Server Applications Under VB .NET: An Example-Driven Approach

Create a new Windows application and call it ClassAttributeDemo. Add a new class to the project and call it ListAttributes. On the default form that is created, add the controls and set the properties as shown in Table 10-1.

Table 10-1: Form Controls for the ClassAttributeDemo Application

Control

Name

Property

Value

Form1

frmList

Text

Class Attribute Demo

Listview

lvwList

View

Details

Button

btnComputers

Text

Computer List

Button

btnBooks

Text

Book List

When you are done, the form should look like Figure 10-1.

Figure 10-1: The ClassAttributeDemo application

Категории