>This is great. I'm getting really close now.
>One more small problem, though.
>
>I have code similar to this in the timer:
>
>IF !MDOWN() THEN
> THISFORM.Timer1.Enabled = .F.
> MESSAGEBOX("HI")
>ENDIF
>
>And the timer is enabled on the resize. Works great in most situations.
>
>But, when i resize the form and hold it in the same position for 4-5 seconds before releasing the button on the mouse at that same position (at which point the timer will hit) it actually runs my code (and displays my messagebox) multiple times. The longer I hold the mouse before letting go the more times.
>
>I'm not sure exactly why this is happening or how to get around it.
>Any suggestions.
>Oh, and thank you very much for the help so far
You could use a Timer to postpone the ejecution. On Form.Resize(), you can both enable and reset() the timer object.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)