Reputation: 11
I've been trying to use the built in settings feature in C# but it's not working. When I try and do something like this.BackColor = Properties.Settings.Default.myColor;
, Properties
doesn't exist. I've tried looking up more info but microsoft provides no info regarding this. Why doesn't it work?
Upvotes: 0
Views: 1033
Reputation: 7903
Create the setting for myColor
http://msdn.microsoft.com/en-us/library/aa730869%28v=vs.80%29.aspx
Upvotes: 1
Reputation: 54532
The easiest way is to create your Settings in your Project Property's Settings section. You do not show how you create it but something like this should work.
Upvotes: 6