我想尝试更改 Internet 设置级别VB.NET
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim regKey As Microsoft.Win32.RegistryKey
regKey = Microsoft.Win32.RegistryKey.OpenBaseKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\", True)
regKey.SetValue("2400", 0, RegistryValueKind.DWord)
End Sub
End Class
我收到此错误: 未声明 BC30451 'RegistryValueKind'。由于其保护级别,它可能无法访问。
有什么解决办法吗?