Smart Stress Management Tools for coping in a stressful world

Stress Management Program

Posted on April 9, 2007

stress management program
stress management program
I'm using Visual Basic 6.0 and I got some issues I'd like clarified. I hope u can help.?

Right, I want to use the ListView control in my application. I'd like it to be able to connect to a simple database project, eg, a contact management program. I'd like you to help me out coz it's really stressing me out.

Thanks in advance
The problem is that I haven't got any useful code into the project as yet. I don't even know how to use the control to maximize its full functionality. So far, I've only managed to let the ListView show icons (from the ImageList) and that's all. I want it to be able to access info in my database. I don't even know if what I'm asking is possible but if it can't be done, then please tell me so.

The ListView isn't a databound control. For that, you'll need the MSFlexGrid/MSHFlexGrid or DataGrid controls, or the dataRepeater control with a custom control.

To get a ListView to show data from a database, you'll need to gather the data into an Array or RecordSet (using the Activex Data Objects (ADO)), and populate the control by iterating through the retrieved information.

The problem is: if you don't know how to use the ListView to begin with, filling it with data from a database will be... pretty damn near impossible without some examples that show you how to populate the control (using the "key" and "index" options, and "subitems" correctly).

There's tons of code examples out there on the web - simply do a search for "Visual Basic -".net" listview recordset", and see what the codes all do to get a handle on it.

(BTW: The -".net" in the search string is including the quotes, and prevents you from getting all types of examples that don't work in VB6)

[affmage source="amazon" results="5"]stress management program[/affmage]

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

No trackbacks yet.