vb.net 注册表操作又遇到难题,求各为高手帮帮看看......
Imports System.ComponentModel
Imports Microsoft.Win32
Dim CReg As RegistryKey = Registry.CurrentUser.OpenSubKey("Control Panel\Desktop")
CReg.SetValue("TileWallpaper", "0")
程序执行到 CReg.SetValue("TileWallpaper", "0")时就会出现错误
" 未处理的“System.UnauthorizedAccessException”类型的异常出现在 mscorlib.dll 中。
其他信息: 无法写入到注册表项。" 错误码好象是 5 !
好象程序不能写入,但可以手动更改注册表,为什么会这样,高手们关注一下,谢谢了