problem loading more array in listview


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: problem loading more array in listview

  1. #1
    Join Date
    Apr 2008
    Posts
    22

    Exclamation problem loading more array in listview

    I am having a problem with the maximum height for a listview... I'm adding about 150,000 items to the listview, but I am not using the microsoft fugly scrollbars, so i whipped up some flat ones and stuck them next to a frame so I could scroll the listview in the frame... so the listview's height is dynamically set each time to reflect how many items are in it... the problem is once the height gets to 245745 it stops getting bigger, and those fugly scrollbars appear and mess things up...

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Welcome to DevX

    Why are you loading 245,745 items in a listview?

    You don't actually expect users to scroll through all of that do you?

    Heck, I wouldn't even want to scroll through 150,000.

    Can't you filter this number down to a more managable level (and I'm not talking about in terms of your scrollbars. I'm talking about in terms of end user usability!)
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    hack: he is talking about height = 245745 not items ... anyway I agree with the end user usability .. I don't like to scroll at all fyi and like mostly everybody ..

    anyway OP: I'm just thinking for that issue how do you think the height will grow up with you ? you have limits the screen .. the form height .. and so on ...once ur invloved in creating you own scroll bar, continue what're you doing and create ur own listview control .. when scroll the top dissapear and the bottom appear .. and so on ...
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  4. #4
    Join Date
    Apr 2008
    Posts
    22
    in vb.6, I am creating controls at runtime inside frame.I am using one frame inside another to load the controls. To view all controls vscroll bar contraol is used. My problem is when the frame top position comes to 245000 the controls are not visible.I have to load nearly minimum 3000 pictures and it may extend according to user. What is the problem and help me to load pictures in a single frame? Can paging be done in a page?

  5. #5
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    You can use multiple frames and just toggle there visibility property so that it actually "appears" to be the same frame (kind of like a wizard)
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  6. #6
    Join Date
    Apr 2008
    Posts
    22
    can u send me some sample code ....

  7. #7
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Here is an example of a wizard.
    Attached Files Attached Files
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 2
    Last Post: 02-07-2007, 09:20 PM
  2. Listview Flicker Problem
    By Jugg in forum .NET
    Replies: 0
    Last Post: 09-07-2005, 03:52 PM
  3. Listview Selection Problem.
    By Jugg in forum .NET
    Replies: 1
    Last Post: 09-03-2005, 10:21 PM
  4. loading 2D array
    By ashiers in forum XML
    Replies: 0
    Last Post: 08-29-2005, 05:36 PM
  5. Replies: 5
    Last Post: 05-24-2002, 05:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center