0% found this document useful (0 votes)
194 views

Tutorial On How To Display Records From Database To Listview in Vb6

This document provides a 3-step tutorial for displaying records from a database in a listview control in VB6.0. First, it describes how to add the listview control to the toolbox. Second, it explains how to create a listview object in a form and display all records from the database. Third, it lists the specific properties that should be changed for the listview, including setting the View, LabelEdit, FullRowSelect, and Gridlines properties. The overall goal is to retrieve and present data from an Access database in a listview user interface element for viewing.

Uploaded by

ian uzumaki
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
194 views

Tutorial On How To Display Records From Database To Listview in Vb6

This document provides a 3-step tutorial for displaying records from a database in a listview control in VB6.0. First, it describes how to add the listview control to the toolbox. Second, it explains how to create a listview object in a form and display all records from the database. Third, it lists the specific properties that should be changed for the listview, including setting the View, LabelEdit, FullRowSelect, and Gridlines properties. The overall goal is to retrieve and present data from an Access database in a listview user interface element for viewing.

Uploaded by

ian uzumaki
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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