MasterCodeon365 wrote:
is Nullable
There's your problem - that's not how you check for
null
/
Nothing
in C#.
if (Registry.GetValue("HKEY_CURRENT_USER\\Software\\Number Averaging Program", "SpeechEnable", null) == null)
{
MessageBox.Show("There Are No Registry Settings To Delete!", "Number Averaging Program");
}
else
{
Registry.CurrentUser.DeleteSubKey("Software\\Number Averaging Program");
MessageBox.Show("Registry Settings Cleared Successfully!", "Number Averaging Program");
}