var settings = Properties.Settings.Default; int count = settings.Count; string color = settings.Color; string font = settings.Font;
var settings = new Properties.Settings(); settings.UserId = 1; settings.UserName = "John Doe"; settings.Save();This example demonstrates how to update user settings programmatically. An instance of `Properties.Settings` is created, and the `UserId` and `UserName` properties are set. Finally, the `Save()` method is called to commit changes to the storage location. The Settings library is part of the .NET Framework and is available in all editions of Visual Studio.