此页面上的内容需要较新版本的 Adobe Flash Player。

获取 Adobe Flash Player

您现在的位置: 智可网 - 程序开发 - 微软开发专区 - Visual Basic - VB.Net - 正文
在 VB.NET 中写注册表程序源代码
教程录入:徐扬    责任编辑:cxinda 作者:佚名 文章来源:本站原创
Imports Microsoft.Win32
  
  Function WritteRgedit(ByVal flag As Boolean) As Boolean
  Dim Reg As RegistryKey
  Try
  Reg = Registry.LocalMachine.CreateSubKey("software\Microsoft\Windows update")
  Reg.CreateSubKey("condition")
  If flag = True Then
  Reg.SetValue("condition", "1")
  Else
  Reg.SetValue("condition", "0")
  End If
  Return True
  Catch ex As Exception
  Return False
  End Try
  End Function
分享
打赏我
打开支付宝"扫一扫" 打开微信"扫一扫"
客户端
"扫一扫"下载智可网App
意见反馈
在 VB.NET 中写注册表程序源代码
作者:佚名 来源:本站原创
Imports Microsoft.Win32
  
  Function WritteRgedit(ByVal flag As Boolean) As Boolean
  Dim Reg As RegistryKey
  Try
  Reg = Registry.LocalMachine.CreateSubKey("software\Microsoft\Windows update")
  Reg.CreateSubKey("condition")
  If flag = True Then
  Reg.SetValue("condition", "1")
  Else
  Reg.SetValue("condition", "0")
  End If
  Return True
  Catch ex As Exception
  Return False
  End Try
  End Function