I have a ListView in a container that will not refresh correctly. When I resize the container the Listview appears outside of the boundaries of the container! If the ActiveX is in a form it will behave itself.
It <i>sounds</i> like the List is not actually in the container, but sitting on top of (or behind) it. While in design mode, can you grab the List and move it completely outside the container?
I had a similar problem a year back with Access. After much investigation, I came to the conclusion that Access container controls are crap and don't handle complex controls very well.
My solution was to *not* place the activex control within the container control, but place it on the form, as a normal control, in the appropriate position, on top of where it should be.
I then use code to resize it manually. This code is triggered when the form/container is resized. You might wanna try this for VFP - it could be the same.
Your solution is probably right for Access, but it is unnecesary in VFP. I have written a freeware listview class which consists of a ListView inside a container. It is used by hundreds of programmers, and the resizing works fine.
(If anyone would like a copy of the class, with my compliments, you can grab it from:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.