To Write and Persist User Settings at Run Time
- Access the user setting and assign it a new value, as shown in the following example:
Properties.Settings.Default.myColor = Color.AliceBlue;
- If you want to persist changes to user settings between application sessions, call the Savemethod, as shown in the following code:
Properties.Settings.Default.Save();
沒有留言:
張貼留言
留個話吧:)