Removing Keys from Properties
You remove a key from a property when you no longer want to store that property's value in an external file. Removing a key removes the code indicating that the property value is stored in a configuration file.
Note that the system does not automatically update the configuration file when you remove a key from a property — the entry still appears in the configuration file. This is because the configuration file does not keep track of references to a key; because multiple properties may use the same key, the configuration file has no way of knowing when a key is no longer in use. Therefore, there may be many more keys in your configuration file than are actually in use in the product. This should not cause problems for your application.
To remove a key from a property
- Access the Properties window for the form, control, or component.
- Expand the DynamicProperties node. All properties that currently have keys are listed beneath this section.
- Locate the property whose key you want to remove, then click the Ellipsis ( ) button next to it.
- In the dialog box that appears, uncheck the Map property to a key in configuration file check box.
When you return to the Properties window, that property will now show a value of None in the DynamicProperties node, indicating that its value is no longer being stored.Note If you want, you can edit the configuration file to remove the entry for this property; however, leaving the property key in the file will not cause any errors in your application.