Nouman Zakir
while (true) { Post.NewArticle(); }
posts - 13, comments - 12, trackbacks - 0
My Links
Home
Contact
Login
News
Archives
August, 2009 (2)
February, 2009 (7)
January, 2009 (4)
Post Categories
SQL
(rss)
Windows
(rss)
Personal Website
Nouman Zakir (homepage)
Nouman Zakir (LinkedIn Profile)
<< Hello world!
|
Home
|
Performance counter without overflow >>
Save Configuration Settings in Registry
First, go to AssemblyInfo.cs and remove all asterisks from the AssemblyVersion:
[assembly: AssemblyVersion("1.0.0.0")]
Otherwise, every time you build your application the registry key will change.
Save configuration values to the registry as follows:
Application.UserAppDataRegistry.SetValue("Value", Value);
Load configuration values to the registry as follows:
try
{
Value = (int) Application.UserAppDataRegistry.GetValue("Value");
}
catch(Exception)
{
}
The GetValue method will throw an exception if the specified value does not exist in the registry.
Print
| posted on Sunday, January 11, 2009 9:58 PM |
Feedback
No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
Remember Me?
Powered by:
Copyright © Nouman Zakir