CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    I hate the VB6 listview...

    Does anyone know why they made the common control 6 - listview so bad?
    I'm having huge problem with refreshing the thing... I could fix a few problems by removing the listview.setfocus calls, but still now all...
    One of the problems that occur sometimes (if it would happen always it still would suck but at least consistent) when my form was overlapped by another window (like right now IE is doing...), when I click on my program (on the part of the form that still is visible now) it sometimes doesn't refresh the part of the listview that was covered.. but if I do a listview.refresh in the form-click event, the whole listview dissapears (??!!), on other moments the thing is refreshed pretty fine...
    Does anyone has a nice working workaround for this?
    Oh, and the moments the listview looks like it's refresh nicely, it actually isn't.. the little black line above the header (I think it's the "3d look" is still not refreshed, so that looks silly...)

    Crazy D @ Work :-)

  2. #2
    Join Date
    Sep 1999
    Posts
    202

    Re: I hate the VB6 listview...

    From VB docs:
    "Avoid nesting controls with ClipControls set to True inside controls with ClipControls set to False. Doing so may result in the nested controls not repainting correctly. To fix this, set ClipControls to True for both the containers and the controls."

    Your listview is not on the form, but on the other container (picturebox). Try setting ClipControls of your form and all pictureboxes to FALSE.


  3. #3
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: I hate the VB6 listview...

    Tnx a lot! This was exactly what I needed!

    Crazy D @ Work :-)

  4. #4
    Join Date
    Sep 1999
    Posts
    202

    Re: I hate the VB6 listview...

    Thanks for you points. BTW, I love ListView


  5. #5
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: I hate the VB6 listview...

    *LOL* well if it's nice to me, I think I can love it too *LOL*

    Crazy D @ Work :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured