Define the configuration field in the settings. settings file. Define the scope of action as user, which can be changed during runtime, and applicatiion cannot be changed during runtime. The data grid view is convenient;
2. Read configuration values
Text1.text = properties. settings. default. fieldname;
// Fieldname is the field you define
3. Modify and save configurations
Properties. settings. default. fieldname = "server ";
Properties. settings. default. save (); // use the save method to save and change settings in properites.
The specific configuration is as follows:
Read configuration value
String straddress = properties. settings. default. address;
Modify and save configurations
Properties. settings. default. address = "address ";
Properties. settings. default. save (); // use the save method to save changes
Obtain the value based on the configuration name.
String straddress = properties. settings. default. properties ["address"]. defaultvalue
The address is case sensitive.