Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 16th, 2006, 07:12 AM
Authorized User
 
Join Date: Feb 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to amarjits Send a message via MSN to amarjits Send a message via Yahoo to amarjits
Default Virtual Listview in VB6

I need to create a virtual listview control...i.e. i have a BIG list of records in a database which i wish to show the user in a listview...but loading from database takes abt 50-60 seconds and on a network its even worse....So, i came across this code from Mvps.org which works great but sometimes it crashes the whole software...so, i am looking for alternatives...kindly reply if u have something in this reagrd...thanx in advance.

__________________
Amarjit Singh
 
Old February 16th, 2006, 12:53 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

hi

why u want to display the complete looooooong list to the user??????

instead give a SEARCH criteria to the user, and it will reduce the data



 
Old February 17th, 2006, 09:02 AM
Authorized User
 
Join Date: Feb 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to amarjits Send a message via MSN to amarjits Send a message via Yahoo to amarjits
Default

thanx for replying...

I am developing a Point of Sale software in which the user can search for the items using various criteria, like a particular supplier, barcode,refno etc.etc...

Earlier its written in VC++...which is very fast in such cases....but in that tooo i have used Virtual ListView...i.e. let the heing of listview control be sufficient to show 20 items then it will only retrieve 20 records from the recordset and thus is much much faster....when user scrolls down the listview it will retrieve the records as needed....there is a property called OWNER_DATA in VC++ which is not exactly in VB.

 
Old February 17th, 2006, 12:06 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

i m not sure why u wanna show a looooooooong list of records in a POS system. A POS is meant to be very fast and user does not hv time to scroll the list.

and whether its VC++ or VB, it will take same time in fetching the data as both use same tech. to manipulate data.

and if u r getting the long list after flitering the data then, u will hv to do wht u did using VC++
i.e display frst 20, then nxt 20 and so on.....

u can also try to optimize ur SQL

and can u post tht code???


 
Old February 20th, 2006, 04:15 AM
Authorized User
 
Join Date: Feb 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to amarjits Send a message via MSN to amarjits Send a message via Yahoo to amarjits
Default

Actually, its a complete POS Application and this part is required in the Inventory Module wherein the Admin users add/modify item details like price changes/Purchases/Inter Branch Transfers etc...so for that i need a gud search screen...but anyways, for the time being, i am showing the first 200 records...and if the user scrolls down and reaches the last 20 records i load another 200 records in the list... ;) this works fine...without compromising on the speed.

thankx for your reply neways..i really appreciate it.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual PC_2007 stanb BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 1 January 29th, 2008 12:19 PM
Virtual Directory MeenaG BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 December 2nd, 2006 01:48 PM
Virtual Directory kristina BOOK: Beginning ASP 3.0 1 April 22nd, 2005 09:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.