Problem with screen painting/refresh ???

M

mscertified

I have a listbox and a button which can be used to extend its height and then
reduce it back again.
Underneath this listbox is another listbox.
When I extend the height of the upper listbox, it extends but the lower
listbox shows through it.
I got around this by making the lower listbox invisible and then visible
again.
Now my problem is that even when I reduce the height of the upper listbox
and make the lower one visible again, the entries in the lower listbox do not
fully re-appear. I tried repainting the form but it has no effect. I'd like
to avoid requerying the listbox if possible.
Any ideas on how to make this simple operation work?
Thanks.
 
K

Klatuu

Have you tried reducing the height of the lower list box so it is the same
height as the upper list box and therefore still hidden by the upper list
box?
 
N

n00b

Sounds to me like the lower control is overlapping. Select the lower
listbox and then click Format->Send To Back on the main Access menu.
Save the form and try again.
 
M

mscertified

I think you misunderstood the arrangement of the controls.
The upper listbox and the lower listbox are normally not overlapping. They
only overlap when the height of the upper listbox is expanded.

The problem occurs when the upper listbox is first expanded and then
reduced. This messes up the display of the lower listbox.
 
M

mscertified

Tried it - makes no difference.
Scrolling the listbox fixes it and so does tabbing to it.
 
N

n00b

Do you have some code I could work with? Can you help me replicate
your form and I'll take another stab at it.
 

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