Right click on your project -> Properties -> Setting
Add your variable which you need to store on client machine
For example
Name TYpe Scope Value
UserName String User
Password String User
Then For example you want to save Preference on Login button click
If(CheckboxRemember.checked)
{
YourProjectNamespace.Properties.Settings.Default.UserName = TextBoxUserName.Text;
YourProjectNamespace.Properties.Settings.Default.Password = TextPassword.Text;
YourProjectNamespace.Properties.Settings.Default.Save();
}
On the same way Access These value on Window Load or application startup
TextBoxUserName.Text = YourProjectNamespace.Properties.Settings.Default.UserName;
TextPassword.Text = YourProjectNamespace.Properties.Settings.Default.Password;