Problem with screen painting/refresh ???

  • Thread starter Thread starter mscertified
  • Start date Start date
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.
 
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?
 
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.
 
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.
 
Tried it - makes no difference.
Scrolling the listbox fixes it and so does tabbing to it.
 
Do you have some code I could work with? Can you help me replicate
your form and I'll take another stab at it.
 
Back
Top