Nouman Zakir
while (true) { Post.NewArticle(); }
posts - 16, comments - 31, trackbacks - 0
My Links
Home
Contact
Login
News
Archives
March, 2010 (3)
August, 2009 (2)
February, 2009 (7)
January, 2009 (4)
Post Categories
SQL
Windows
Funny
News
Programming
C#
.Net
Personal Website
Nouman Zakir (Google Profile)
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.
Share This Post:
Short Url:
http://wblo.gs/XRr
Print
| posted on Sunday, January 11, 2009 9:58 PM |
Feedback
No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
Enter the code shown above
Remember Me?
Powered by:
Copyright © Nouman Zakir