>Hi Fred,
>
>>Oh, it was just a thought, I hadn't tried it yet. (VFP6/SP3) But I don't think just setting the WindowState property actually does the re-sizing, does it?
>
>It fires the Moved and the Resize events. If you take out the Visible = .F. line, it works, but I don't feel like showing this akwardness to users.
>
>What I'm trying to do is save the size and postion of the form. If the form is maximzed, I want the form to come in maximzed, and when it is restored, the form states should go to the size and position it was at before it was maximized and closed.
I don't know if you can do it easily. You need to hook into the maximize event (which there isn't one that I could find), and an _assign method doesn't fire ( I jsut checked).
None of my other MS products do it either. I checked work, outlook98, excel, and IE5.
I figured this out, because I tried to do the exact same thing today < g >
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!