REG_SZ is a string value in the registry.
Use
My.Computer.Registry.CurrentUser.SetValue("Software\Real_Estate_Program", "c", "True")
or
My.Computer.Registry.CurrentUser.SetValue("Software\Real_Estate_Program", "c", "True", RegistryValueKind.String)
In the first call the
SetValue
[
^] determines that the value needs to be stored as a REG_SZ, because you are passing the value as a string.
The
RegistryValueKind.String
[
^] enum in the second call tells the
SetValue
[
^] function you want to store the value as a
REG_SZ
.
To retrieve this value from the registry use
My.Computer.Registry.CurrentUser.GetValue("Software\Real_Estate_Program\", "c", "default")
The last parameter in the
GetValue
call is returned by the function when the key you are retrieving does not exist.