Hi, So I'm struggling to find anything about running different tasks inside my application depending on the registry value. Here is an example of what I'm trying to do: Code: //if the following value is HKLM\SOFTWARE\Application1\String\0 //then run { button1.Visible = true; button2.Visible = false; } //if the value is HKLM\SOFTWARE\Application1\String\1 //then run { button1.Visible = false; button2.Visible = true; } //if the value is HKLM\SOFTWARE\Application1\String\2 //then run { button1.Visible = false; button2.Visible = false; } //if there is no value available then run { button1.Visible = true; button2.Visible = true; } If anyone could help it would be greatly appreciated. Thanx In Advanced
I'm not sure exactly what your requirements are but if you just want a way of configuring your application, use app.config instead. http://generally.wordpress.com/2007/09/27/using-appconfig-for-user-defined-runtime-parameters/ If however you do actually need to read registry settings then the link above is the one you want.