Protected by Copyscape Plagiarism Software

Cara Add,Ubah Value,Hapus Atau Delete Registry Visual Basic 2010




Nih bagi yang sedang ngeprogram Vb.net atau Visual Basic 2010, saya akan share Cara Add,Ubah Value,Hapus Atau Delete Registry. Cara ini sangat mudah dilakukan dan hanya butuh sedikit pemahaman
Berikut adalah source codenya:


  • Membuat Registry
    My.Computer.Registry.CurrentUser.CreateSubKey("TestKey")
  • Mengubah Value Registry
    Dim autoshell = My.Computer.Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows NT\CurrentVersion\Winlogon", True)
    '' Set the value to 0
     autoshell.SetValue("autorestartshell", 0)
    autoshell.Close()

  • Menghapus Registry
    My.Computer.Registry.CurrentUser.DeleteSubKey("TestKey")

PERHATIAN:
  1. My.Computer.Registry.CurrentUser.CreateSubKey("TestKey")
    Current User bisa diganti dengan Local Machine Atau Yang Lainnya, Sesuai Keinginan Dan Sesuai Pilihan Pada MSDN Vb.net
  2. pada Add Value Registry jika ingin merbah Dword32 maka dibutuhkan Dword 32 Code
    Caranya hapus tanda 0 dan koma, lalu berikan tanda koma dan akan muncul beberapa pilihan

Hay tamuku,Trimakasih sudah membaca Cara Add,Ubah Value,Hapus Atau Delete Registry Visual Basic 2010 ,Silahkan bagikan artikel Cara Add,Ubah Value,Hapus Atau Delete Registry Visual Basic 2010 kepada teman anda!
Share on :
 

Posting Komentar