To create a preferences form in C#, you can use the built-in Settings feature of WinForms. Here are the steps to create a preferences form:
Properties.Settings.Default
object. For example, to get the value of the "Username" setting, you could use Properties.Settings.Default.Username
.Here is some sample code for the constructor and the Save button click event handler of the PreferencesForm:
main.cs513 chars20 lines
gistlibby LogSnag