?? form1.frm
字號:
VERSION 5.00
Begin VB.Form form1
BackColor = &H00FFC0C0&
Caption = "去掉IE工具菜單下的Internet選項"
ClientHeight = 1665
ClientLeft = 60
ClientTop = 345
ClientWidth = 6075
LinkTopic = "Form1"
ScaleHeight = 1665
ScaleWidth = 6075
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command3
BackColor = &H00FF8080&
Caption = "退出"
Height = 435
Left = 4005
Style = 1 'Graphical
TabIndex = 2
Top = 585
Width = 1785
End
Begin VB.CommandButton Command2
BackColor = &H00FF8080&
Caption = "添加Internet選項"
Height = 435
Left = 2115
Style = 1 'Graphical
TabIndex = 1
Top = 600
Width = 1785
End
Begin VB.CommandButton Command1
BackColor = &H00FF8080&
Caption = "去掉Internet選項"
Height = 435
Left = 240
Style = 1 'Graphical
TabIndex = 0
Top = 600
Width = 1785
End
End
Attribute VB_Name = "form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Const REG_BINARY As Long = 3
Const HKEY_CLASSES_ROOT = &H80000000
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
Const HKEY_USERS = &H80000003
Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegDeleteValue& Lib "advapi32.dll" Alias "RegDeleteValueA" _
(ByVal hKey As Long, ByVal lpValueName As String)
Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" _
(ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" _
(ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, _
ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
Private Sub Command1_Click()
Dim hKey As Long
RegCreateKey HKEY_CURRENT_USER, _
"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", hKey
a = &O1
RegSetValueEx hKey, "nofolderoptions", 0, REG_BINARY, a, 4
MsgBox "已完成設(shè)置,請檢查 Internet Explorer 工具菜單下的Internet選項"
RegCloseKey hKey
End Sub
Private Sub Command2_Click()
Dim hKey As Long
RegCreateKey HKEY_CURRENT_USER, _
"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", hKey
RegDeleteValue hKey, "nofolderoptions"
MsgBox "已完成設(shè)置,請檢查 Internet Explorer 工具菜單下的Internet選項"
RegCloseKey hKey
End Sub
Private Sub Command3_Click()
End
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -