Application settings--form location and size

D

David Veeneman

I'm having a problem getting design-time property binding to work with a
form's size and location properties.

I started with the Location property under Application Settings in the
Properties window. I added a new setting ("FormLocation") using the New
Application Setting dialog, and confirmed that the setting was created in
the project properties Designer window. But when I run my app and move its
form, the app doesn't remember the new location. When I restart the app, the
form opens in the original location.

Am I missing a step in binding the Location property to an application
setting? What do I need to do to get this working? Thanks in advance.
 
D

David Veeneman

Found my answer-- settings have to be saved using Settings.Save(). I call
the method from the FormClosing event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top