3 out of 8 rated this helpful - Rate this topic

How To: Read Settings at Run Time With C#

You can read both Application-scoped and User-scoped settings at run time via the Properties object. The Properties object exposes all of the default settings for the project via the Properties.Settings.Default member.

To Read Settings at Run Time with C#

  • Access the appropriate setting via the Properties.Settings.Default member. The following example shows how to assign myColor setting to a BackColor property.

    // C#
    this.Backcolor = Properties.Settings.Default.myColor;
    
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.