I need to edit a registry key and set the data value to \"4\"
I know how to do it through the command prompt but am trying to find some Visual Basic code to do it.>
You need to use the Registry class in the Microsoft.Win32 namespace. Check the docs, it is pretty easy to use.