Geeks With Blogs
Nouman Zakir while (true) { Post.NewArticle(); }
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. Posted on Sunday, January 11, 2009 9:58 PM | Back to top


Comments on this post: Save Configuration Settings in Registry

# re: Save Configuration Settings in Registry
Requesting Gravatar...
When I faced a strange Outlook issue in my Windows PC, I tried out different steps of troubleshooting. Finally, what worked out for me was saving the configuration settings in the registry. It really worked well. Now, I don’t face any issues at all. Water White Glass
Left by James on Sep 09, 2015 9:15 AM

Your comment:
 (will show your gravatar)


Copyright © Nouman Zakir | Powered by: GeeksWithBlogs.net