Ragha has posted a nice article of how to use the new Settings APIs to save off the last known size/location of your form.