VB.NET Operation Registration

xiaoxiao2021-03-06  43

Imports Microsoft.Win32.Registry

Public class reg inherits system.windows.Forms.form

#Region "Windows Form Designer Generated Code"

Public Sub new () mybase.new ()

'This call is required for the Windows Form Designer. InitializeComponent ()

'Add any initialization after INITIALIZECOMPONENT ()

End Sub

'Form rewriting Dispose to clean up the list of components. Protected overloads overrides sub dispose (byval disposing as boolean) ing disponation kiln (Components Is Nothing) Then components.dispose () end if endiffs) End sub

'Windows Form Designer Supply Private Components as System.comPonentModel.icontainer

'Note: The following procedure is necessary to use the Windows Form Designer to modify this process using the Windows Form Designer. 'Don't modify it using the code editor. Private Sub InitializeComponent () '' Reg 'Me.AutoScaleBaseSize = New System.Drawing.Size (6, 14) Me.ClientSize = New System.Drawing.Size (292, 133) Me. Name = "reg" me.text = "ra"

End Sub

#End region

Private Sub Reg_Load (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim str As String = "EasyClick.PurpleStar.Win.exe" Dim reg As Microsoft.Win32.RegistryKey reg.OpenSubKey ( "Software / Microsoft / Windows / CurrentVersion / Run / ", TRUE) IF Reg.getValue (" easyclick.purplestar.win.exe ") is nothing the reg.setValue (" easyclick.purplestar.win.exe "," EasyClick.purpleStar. Win.exe ")

End if End Subend Class

转载请注明原文地址:https://www.9cbs.com/read-63133.html

New Post(0)