DWORD In registry.

Michaelk

Well-known member
Joined
Jun 3, 2004
Messages
58
Location
Australia
Programming Experience
3-5
Hi, i use the following code to create a normal Key in the registry:
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]
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.
 
placing a string in the setValue's value field makes it a string key. Putting an integer makes it a DWORD. guess I should look at the parameters of a function closer.
 
Back
Top