How can I edit a registry key with VB.NET or VB6?

前端 未结 3 990
北荒
北荒 2021-01-20 16:40

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.

3条回答
  •  無奈伤痛
    2021-01-20 17:16

    You need to use the Registry class in the Microsoft.Win32 namespace. Check the docs, it is pretty easy to use.

提交回复
热议问题