refreshing on Resize

  • Thread starter Thread starter Jordan
  • Start date Start date
J

Jordan

I have a form that has a large list box on it. I have it so the list box
expands and contracts as the form expands and contracts. Here is the code:

Private Sub Form_Resize()

Me.lstSubData.Height = Me.InsideHeight - 2800
Me.lstSubData.Width = Me.InsideWidth - 600

End Sub

The problem is that the form flashes rapidly as it expand and contract and
it can be very annoying. Is there a way to make my Access 2000 form not
flash as much as it resizes?
 
You can use

Application.Echo False

and

Application.Echo True

to turn off screen updates, and then turn them on again.

Hope this helps,

Peter De Baets
Peter's Software - MS Access Tools for Developers
http://www.peterssoftware.com
 
Back
Top