Requires Free Membership to View
Basically it goes like this:
You set up a dynamic property in the IDE for an object such as a form. The IDE creates an app.config file, an entry in the file for the property and adds code to the form to read the property from the file. You won't even break a sweat!
Now you're all set to read the config file and set the properties of your form, but there is more work to do to persist the properties dynamically.
To do that, you need to load the XML config file, walk the DOM to get the setting for each persisted property and then of course set the properties properly in the app. It is much easier than it sounds! In the MSDN help there is an article that has examples. Here is the URL for the online version.
To find it in your local version of MSDN search on "Creating Your Own Dynamic Properties."
This was first published in June 2002

Join the conversationComment
Share
Comments
Results
Contribute to the conversation