Listview control appears in the wrong position on form

J

Jim Ridenour

I'm using Access 2000 and have run into a problem using
the ListViewcontrol (mscomctl 6.0 SP4) on a page of a tab
control.

A ListView control on one of my forms is not displaying in
the correct position on the form.

If place a tab control with two tab pages, and then place
a ListView control on the second page. I then add some
rows to the ListView control during the Form open event.
When I click on the tab page containing the ListView
control, the form displays the ListView control at the
upper left of the detail area of the form, and not on the
tab page area. Besides being in the wrong location, the
ListView appears to working correctly.

If I then click back the the first page, and then reclick
the 2nd page (without making changes to the ListView's
ListItems collection), the ListView will display in the
correct position on the tab page.

However, if any changes are made to the ListView's
ListItems collection while the ListView is not displayed,
it will show up in the wrong place again when the tab page
is shown.

Any ideas?
 
M

Michel Walsh

Hi,


Can't you try to reposition, explicitly, through VBA code, the control,
in the onChange event of the tab control (through the property top and
left )? Your problem is, indeed, reproducible, but I am not aware of an
official patch about it.


Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top