G
Guest
Hello all,
I am trying to store a value in the registry using VS2003 and SDF1.4. It
does not error out, yet it does not write the value to the registry either.
Below is my code:
Dim regKey As RegistryKey
Dim keyName As String = "\Comm\TIACXWLN1\Parms\TcpIp"
Dim valueName As String = "IpAddress"
Dim regValue As String
Try
regKey =
OpenNETCF.Win32.Registry.LocalMachine.CreateSubKey(keyName)
OpenNETCF.Win32.Registry.LocalMachine.SetValue(valueName,
"192.168.51.151")
regKey.Flush()
regKey.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Would anyone be willing to show me what I am doing wrong here? I need to get
this working asap for a project we are doing at work.
Thanks,
I am trying to store a value in the registry using VS2003 and SDF1.4. It
does not error out, yet it does not write the value to the registry either.
Below is my code:
Dim regKey As RegistryKey
Dim keyName As String = "\Comm\TIACXWLN1\Parms\TcpIp"
Dim valueName As String = "IpAddress"
Dim regValue As String
Try
regKey =
OpenNETCF.Win32.Registry.LocalMachine.CreateSubKey(keyName)
OpenNETCF.Win32.Registry.LocalMachine.SetValue(valueName,
"192.168.51.151")
regKey.Flush()
regKey.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Would anyone be willing to show me what I am doing wrong here? I need to get
this working asap for a project we are doing at work.
Thanks,