ralph
6/11/2011 5:11:00 PM
On Sat, 11 Jun 2011 17:12:51 +0100, MM <kylix_is@yahoo.co.uk> wrote:
>This has been irritating me for several weeks, but it's time I got to
>the bottom of it. (I've already looked for similar problems in
>groups.google.com, and while the problem is mentioned, no fix is
>apparent.)
>
>What happens is, I have a form (not my main form) with an MsFlexGrid
>on it, maybe only with 1500 rows. Then the next time I look, the
>vertical scrollbar has disappeared. Even if I close, then re-open the
>form and reload the data the scrollbar does not reappear. I have to
>shut down the app, then start it again, whereupon, on the form in
>question, the scrollbar is back. For a while!
>
>Has anyone else experienced this and knows what the cause/fix is?
>
It appears the intial state of the control is ok, but its internal
settings become corrupted during use. (I know - Duh! lol)
So look for something that is touching the control's properties. Most
likely something that appears benign and in a section of code that
"You absolutely KNOW is just fine!" <g>
Check all the default properties on Properties dialog. (They are
over-written by code... usually, but check anyway.
Instrument some mild 'stops' and 'redraws' at different points in the
code. Something like ...
Debug.Assert False
DoEvents
I vaguely remember that control getting "confused" if height or width
is changed dynamically, ie, if you mess with one, you have to mess
with the other. Might be superstition on my part.
sry that's all I got.
-ralph