📄 frmautostartup.frm
字号:
VERSION 5.00
Begin VB.Form frmAutoStartup
BackColor = &H00FFFFFF&
BorderStyle = 4 'Fixed ToolWindow
Caption = "随Windows一起启动"
ClientHeight = 1335
ClientLeft = 45
ClientTop = 315
ClientWidth = 4425
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1335
ScaleWidth = 4425
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "应用"
Height = 315
Left = 960
TabIndex = 3
Top = 930
Width = 1455
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H00FFFFFF&
BorderStyle = 0 'None
DrawStyle = 5 'Transparent
ForeColor = &H80000008&
Height = 1110
Left = 3120
Picture = "frmAutoStartup.frx":0000
ScaleHeight = 1110
ScaleWidth = 1110
TabIndex = 2
Top = 120
Width = 1110
End
Begin VB.CheckBox Check1
BackColor = &H00FFFFFF&
Caption = "Check1"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 0
Top = 240
Value = 1 'Checked
Width = 255
End
Begin VB.Label Label2
Alignment = 2 'Center
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BackStyle = 0 'Transparent
Caption = "推荐"
ForeColor = &H80000008&
Height = 180
Left = 1500
TabIndex = 4
Top = 480
Width = 375
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00FFFFFF&
Caption = "允许随Windows一起启动"
Height = 180
Left = 480
TabIndex = 1
Top = 240
Width = 1890
End
End
Attribute VB_Name = "frmAutoStartup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居汉化收藏整理
'发布日期:2007/09/20
'描 述:界面清爽VB版高级专业防火墙 Ver 2.0.3
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Option Explicit
Private Sub Check1_Click()
If Check1.Value = 1 Then
Label1.Caption = "允许随Windows一起启动"
Label2.Caption = "推荐"
Else
Label1.Caption = "禁止随Windows一起启动"
Label2.Caption = "不推荐"
End If
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
If Check1.Value = 1 Then
Shell "cmd.exe /c reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v OnItFirewall /t REG_SZ /d """ & App.Path & "\" & App.EXEName & ".exe"" /f", 0
Label1.Caption = "Start With Windows Enabled"
Else
'To remove autorun
'Where autorunapp is the name of the value. You can replace it to anything, but dont put spaces
Shell "cmd.exe /c reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v OnItFirewall /f", 0
Label1.Caption = "Start With Windows Disabled"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -