📄 frmdeleteentry.frm
字号:
VERSION 5.00
Begin VB.Form FrmDeleteEntry
BackColor = &H00FFFFFF&
BorderStyle = 3 'Fixed Dialog
Caption = "删除窗口列表"
ClientHeight = 4710
ClientLeft = 45
ClientTop = 330
ClientWidth = 7350
ClipControls = 0 'False
ForeColor = &H00FFFFFF&
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4710
ScaleWidth = 7350
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin Add_Remove_Platinum_2004.CommandButton CmdCancel
Height = 495
Left = 5520
TabIndex = 5
Top = 4080
Width = 1695
_ExtentX = 2990
_ExtentY = 873
Caption = "取消"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Add_Remove_Platinum_2004.CommandButton CmdDelete
Height = 495
Left = 2040
TabIndex = 4
Top = 4080
Width = 1695
_ExtentX = 2990
_ExtentY = 873
Caption = "删除"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Add_Remove_Platinum_2004.CommandButton CmdUnInstall
Height = 495
Left = 120
TabIndex = 3
Top = 4080
Width = 1695
_ExtentX = 2990
_ExtentY = 873
Caption = "卸载"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.PictureBox picSoftLarge
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 512
Left = 240
Picture = "FrmDeleteEntry.frx":0000
ScaleHeight = 510
ScaleWidth = 510
TabIndex = 1
Top = 195
Width = 512
End
Begin VB.TextBox TxtDName
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 285
Left = 840
Locked = -1 'True
TabIndex = 2
TabStop = 0 'False
Top = 285
Width = 6255
End
Begin VB.Line Line1
Index = 1
X1 = 7200
X2 = 7200
Y1 = 480
Y2 = 3840
End
Begin VB.Line Line2
X1 = 120
X2 = 7200
Y1 = 3840
Y2 = 3840
End
Begin VB.Line Line1
Index = 0
X1 = 120
X2 = 120
Y1 = 480
Y2 = 3840
End
Begin VB.Shape Shape2
FillColor = &H00E0E0E0&
FillStyle = 0 'Solid
Height = 615
Index = 1
Left = 120
Shape = 4 'Rounded Rectangle
Top = 120
Width = 7095
End
Begin VB.Label lblMessage
BackStyle = 0 'Transparent
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2655
Left = 600
TabIndex = 0
Top = 960
Width = 6135
End
End
Attribute VB_Name = "FrmDeleteEntry"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'★★★★★****************************★★★★★**********************★★★★★
'金诺VB园-收藏整理
'本站是专注于VB和VBNET编程的源码下载站
'发布日期:2008-3-14 22:00:47
'网 站:http://www.vbget.com/ (金诺VB园)
'网 站:http://www.vbget.com/daohan/ (VB编程网址导航)
'E-Mail :vbget@yahoo.cn
'QQ :158676144
'源码作者:如果您有VB商业源码需要获得收益,本站将有VIP收费下载频道可供你发布!
' 您有权定价;改价;删除;及即时查看下载量(即收益),所有收益全部归您!
' 本站将在双方协商的一个金额周期内打款到作者帐户中,您只需负责打款费用!
' 本站只作为一个平台提供最新VB源码咨讯和源码下载!
'本注释由<站长工具之智能注释>软件自动添加!金诺VB园有此软件下载!
'★★★★★****************************★★★★★**********************★★★★★
Option Explicit
Private Sub cmdCancel_Click()
Unload Me
End Sub
'=========================================================================
' Load form and display message
'=========================================================================
Private Sub Form_Load()
Dim iMessage As String
Me.Icon = FrmMain.Icon
TxtDName.Text = FrmMain.lstview.SelectedItem.Text
' Generate a warning message
iMessage = "Are you sure you want to delete " & Chr$(34) & TxtDName.Text & Chr$(34)
iMessage = iMessage & " from the list of programs installed in your computer?" & vbNewLine & vbNewLine
iMessage = iMessage & " WARNING: You should only delete the entries for programs that you know for sure"
iMessage = iMessage & " that are no longer on your computer. If the program is still on the computer and you"
iMessage = iMessage & " delete it from the list, you may not be able to uninstall it later." & vbNewLine & vbNewLine
iMessage = iMessage & " To check if the program is really not on you computer, "
iMessage = iMessage & " Please try to uninstall it first."
FrmDeleteEntry.lblMessage = iMessage
picSoftLarge.Picture = FrmMain.ImgLarge.ListImages(FrmMain.lstview.SelectedItem.Icon).Picture
End Sub
'=========================================================================
' Delete an entry from the registry.
' The user is sure that the program has been already uninstalled and removed
' from the system. This function will delete all the keys and subkeys
' created and used by the application
'=========================================================================
Private Sub cmdDelete_Click()
On Error GoTo errHandle:
Dim intMsg As Integer
intMsg = MsgBox("Are you sure you want to delete the program?", vbQuestion + vbYesNo, App.Title)
If intMsg = vbNo Then
Exit Sub
End If
Call DeleteKey(HKEY_LOCAL_MACHINE, UnInstallPath & FrmMain.lstview.SelectedItem.Key)
appendToLog gstrLogFile, Now
appendToLog gstrLogFile, "Deleted Entry for " & TxtDName.Text
FrmMain.mnu_refresh_Click
Unload Me
Exit Sub
errHandle:
MsgBox "Error occurred Delete Entry Delete: " & vbCrLf & Err.Description, vbCritical, App.Title
End Sub
'=========================================================================
' Show the Uninstall Form
'=========================================================================
Private Sub cmdUnInstall_Click()
Unload Me
FrmMain.Show_FormUninstall
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -