📄 form6.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "shdocvw.dll"
Begin VB.Form Form3
Caption = "查询结果"
ClientHeight = 6045
ClientLeft = 60
ClientTop = 345
ClientWidth = 9030
Icon = "Form6.frx":0000
LinkTopic = "Form3"
ScaleHeight = 6045
ScaleWidth = 9030
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command4
Caption = "修改"
Height = 255
Left = 7440
TabIndex = 17
Top = 480
Width = 855
End
Begin VB.CommandButton Command3
Caption = "删除"
Height = 255
Left = 6360
TabIndex = 16
Top = 480
Width = 735
End
Begin VB.CommandButton Command2
Caption = "添加"
Height = 255
Left = 5280
TabIndex = 15
Top = 480
Width = 735
End
Begin VB.CommandButton Command1
Caption = "显示"
Height = 255
Left = 4320
TabIndex = 13
Top = 480
Width = 615
End
Begin SHDocVwCtl.WebBrowser WebBrowser1
Height = 1575
Left = 0
TabIndex = 12
Top = 360
Width = 4095
ExtentX = 7223
ExtentY = 2778
ViewMode = 0
Offline = 0
Silent = 0
RegisterAsBrowser= 0
RegisterAsDropTarget= 1
AutoArrange = 0 'False
NoClientEdge = 0 'False
AlignLeft = 0 'False
NoWebView = 0 'False
HideFileNames = 0 'False
SingleClick = 0 'False
SingleSelection = 0 'False
NoFolders = 0 'False
Transparent = 0 'False
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
Location = "http:///"
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "Form6.frx":058A
Height = 1695
Left = 120
TabIndex = 6
Top = 2280
Width = 7335
_ExtentX = 12938
_ExtentY = 2990
_Version = 393216
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 5
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1049.953
EndProperty
BeginProperty Column01
ColumnWidth = 1484.787
EndProperty
BeginProperty Column02
ColumnWidth = 1349.858
EndProperty
BeginProperty Column03
ColumnWidth = 1964.976
EndProperty
BeginProperty Column04
ColumnWidth = 2204.788
EndProperty
EndProperty
End
Begin VB.TextBox Text5
DataField = "状态"
DataSource = "ado1"
Height = 270
Left = 6840
TabIndex = 5
Top = 1560
Width = 1095
End
Begin VB.TextBox Text4
DataField = "访问次数"
DataSource = "ado1"
Height = 270
Left = 6840
TabIndex = 4
Top = 1200
Width = 1095
End
Begin VB.TextBox Text3
DataField = "验证码"
DataSource = "ado1"
Height = 270
Left = 4920
TabIndex = 3
Top = 1560
Width = 1335
End
Begin VB.TextBox Text2
DataField = "文件名"
DataSource = "ado1"
Height = 270
Left = 840
TabIndex = 2
Top = 1920
Width = 7935
End
Begin VB.TextBox Text1
BackColor = &H80000004&
DataField = "ID"
DataSource = "ado1"
Height = 270
Left = 4920
Locked = -1 'True
TabIndex = 1
Top = 1200
Width = 495
End
Begin MSAdodcLib.Adodc ado1
Height = 330
Left = 2760
Top = 5160
Visible = 0 'False
Width = 1560
_ExtentX = 2752
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label7
Height = 255
Left = 3480
TabIndex = 14
Top = 120
Width = 1695
End
Begin VB.Label Label6
Caption = "状态"
Height = 255
Left = 6360
TabIndex = 11
Top = 1560
Width = 495
End
Begin VB.Label Label5
Caption = "访问次数"
Height = 255
Left = 6000
TabIndex = 10
Top = 1200
Width = 735
End
Begin VB.Label Label4
Caption = "验证码"
Height = 255
Left = 4200
TabIndex = 9
Top = 1560
Width = 615
End
Begin VB.Label Label3
Caption = "文件名"
Height = 255
Left = 120
TabIndex = 8
Top = 2040
Width = 615
End
Begin VB.Label Label2
Caption = "ID"
Height = 255
Left = 4560
TabIndex = 7
Top = 1200
Width = 375
End
Begin VB.Label Label1
Height = 255
Left = 0
TabIndex = 0
Top = 120
Width = 3135
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
WebBrowser1.Navigate "http://ab.login.yahoo.com/img/" & Text2.Text
End Sub
Private Sub Form_Load()
Dim X0 As Long
Dim Y0 As Long
'让窗体居中
X0 = Screen.Width
Y0 = Screen.Height
X0 = (X0 - Me.Width) / 2
Y0 = (Y0 - Me.Height) / 2
Me.Move X0, Y0
WebBrowser1.Navigate "about:blank"
ado1.ConnectionString = AppPath
'ado控件使用SQL命令,GET数据源数据
ado1.RecordSource = SQLNow
ado1.Refresh
If ado1.Recordset.RecordCount = 0 Then
MsgBox "没有找到相关纪录!", vbInformation, "提示"
End If
Label1.Caption = "一共找到的相关记录数为:" & CStr(ado1.Recordset.RecordCount) & " 个"
End Sub
Private Sub Form_Resize()
DataGrid1.Width = Me.ScaleWidth - 200
DataGrid1.Height = Me.ScaleHeight - DataGrid1.Top - 50
Text2.Width = Me.ScaleWidth - 1200
End Sub
Private Sub WebBrowser1_DownloadBegin()
Label7.Caption = "下载过程==载入中…" '下载开始时状态栏显示“载入中…”
End Sub
Private Sub WebBrowser1_DownloadComplete()
Label7.Caption = "下载过程==完成" '下载完成时状态栏显示“下载完成”
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -