Binding form location property at design time?

  • Thread starter Thread starter David Veeneman
  • Start date Start date
D

David Veeneman

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

I want to bind a form's Location property to a user setting. Here is what I
did:

-- 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.

I was under the impression that I only need to bind the property to the user
setting and the app will 'remember' the form's last location when it
re-opens the form. But when I reopen the form, it opens in its original
location, not in the location I dragged it to..

Am I missing a step? What do I need to do to get this working? Thanks in
advance.
 
Found my answer-- settings have to be saved using Settings.Save(). I call
the method from the FormClosing event.
 
Back
Top