|
-
Jul 9th, 2009, 02:48 AM
#1
Thread Starter
Member
Problems accesing the register
hi everyone,
I have problems accesing the windows register, i want to create some keys (if there isn't) with this format:
software\company\parameters
|
|___Variable1 Valor1
|___Variable2 Valor2
|___Variable3 Valor3
I trayed with:
dim v1 as string
Dim key As RegistryKey = Registry.LocalMachine.CreateSubKey("Software\Company\Parameters")
key.CreateSubKey("Variable1")
v1 = key.GetValue("Variable1").ToString
if v1 == Null then v1="Valor1"
But doesn't work, any idea?
As ever many thanks...
Last edited by batserra; Jul 9th, 2009 at 03:09 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|