You are on page 1of 4

TUTORIAL ON HOW TO DISPLAY RECORDS FROM DATABASE TO

LISTVIEW IN VB6.0
This is the continuation of the first tutorial that has been post earlier
about the connection between database using ms access and visual basic
6.0.
In this tutorial where going to retrieve all the records that save in the
database and display it in the listview. First you must add the listview
control in the toolbox, to add it follow the following procedure.
1. Right click on the toolbox and select COMPONENTS

2. On the COMPONENTS WINDOW check Microsoft Windows Common


Controls 6.0(SP6) and click APPLY and OK

3. After this listview control is added in your toolbox

Next procedure is to create a listview object in form FrmStudent and


display all the records in your database.
1. First create a listview in form FrmStudent and change the name
into lvwStudent

2. Next is to change the properties of the listview, right click on the


listview and select PROPERTIES

3. On the Properties Page window change the following properties


of the listview:
View
:
LabelEdit
FullRowSelect :
Gridlines
:

3 lvwReport
:
1 lvwManual
Check
Check

You might also like