Click to See Complete Forum and Search --> : I hate the VB6 listview...


Crazy D @ Work
January 18th, 2000, 04:33 AM
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 :-)

Bruno
January 18th, 2000, 04:47 AM
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.

Crazy D @ Work
January 18th, 2000, 05:01 AM
Tnx a lot! This was exactly what I needed!

Crazy D @ Work :-)

Bruno
January 18th, 2000, 05:06 AM
Thanks for you points. BTW, I love ListView :)

Crazy D @ Work
January 18th, 2000, 06:20 AM
*LOL* well if it's nice to me, I think I can love it too *LOL*

Crazy D @ Work :-)