Michaelk
Well-known member
Hi, i use the following code to create a normal Key in the registry:
This is working fine, but i need to create a DWORD entry. I've been looking in MSDN, but can't find it, and searching for DWORD brings up 500+ results.
Anyone know how i can achieve this?
Thanks heaps.
VB.NET:
[size=2][/size][size=2][color=#0000ff]Dim[/color][/size][size=2] key [/size][size=2][color=#0000ff]As[/color][/size][size=2] Microsoft.Win32.RegistryKey[/size]
[size=2]key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("KeyPath")[/size]
[size=2]key.SetValue("KeyName", "KeyValue")
[/size]
Anyone know how i can achieve this?
Thanks heaps.