>>Anyone know of a good way to save/restore the size and location of the application on the desktop utilizing the MM framework?>
>
>Are you talking about the size of _SCREEN?
>
>If so, you can create a new registry / .ini entry and use the goApp.SetSetting and GetSetting methods to save and restore these values. Check out CBaseForm.RestorePosition() and SavePosition() for an example of how to accomplish this.
>
>Regards,
This is kind of what I have done. I have recreated these methods as part of the application class, so that I can save when the app is destroyed and restore when the app is initialized. However, this 'seems' too late in the game.
Do I need to use a top-level form? Some insight would be greatly appreciated.
Also, another 'weird' thing is happening when I use the application's saveposition() that I created. It is essentially the same as cbaseform's saveposition, except the references are different, and I sporadically get GPF's (alias C0000005). When I disable this code, I don't get the C0000005 error.
Thanks.
Doug Stalter
"According to the proverb, the best things are the most difficult." -Plutarch