【VB开源代码栏目提醒】:网学会员为广大网友收集整理了,Thumb.frm,希望对大家有所帮助!
VERSION 5.00
Begin VB.Form Thumb
BorderStyle = 1 'Fixed Single
Caption = "图片批量浏览"
ClientHeight = 5640
ClientLeft = 45
ClientTop = 330
ClientWidth = 7740
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5640
ScaleWidth = 7740
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command4
Caption = "关闭"
Height = 375
Left = 6585
TabIndex = 14
Top = 5235
Width = 1110
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 45
TabIndex = 13
Top = 3900
Width = 3990
End
Begin VB.DirListBox Dir1
Height = 1350
Left = 45
TabIndex = 12
Top = 4230
Width = 3990
End
Begin VB.CommandButton Command3
Caption = "获得图片"
Height = 375
Left = 6585
TabIndex = 10
Top = 4785
Width = 1110
End
Begin VB.CommandButton Command2
Caption = "下一页"
Height = 375
Left = 6585
TabIndex = 9
Top = 4335
Width = 1110
End
Begin VB.CommandButton Command1
Caption = "上一页"
Height = 375
Left = 6585
TabIndex = 8
Top = 3885
Width = 1110
End
Begin VB.Frame Frame8
Height = 1935
Left = 5760
TabIndex = 7
Top = 1920
Width = 1935
Begin VB.Image Image8
Height = 1575
Left = 120
Stretch = -1 'True
Top = 240
Width = 1695
End
End
Begin VB.Frame Frame7
Height = 1935
Left = 3840
TabIndex = 6
Top = 1920
Width = 1935
Begin VB.Image Image7
Height = 1575
Left = 120
Stretch = -1 'True
Top = 240
Width = 1695
End
End
Begin VB.Frame Frame6
Height = 1935
Left = 1920
TabIndex = 5
Top = 1920
Width = 1935
Begin VB.Image Image6
Height = 1575
Left = 120
Stretch = -1 'True
Top = 240
Width = 1695
End
End
Begin VB.Frame Frame5
Height = 1935
Left = 0
TabIndex = 4
Top = 1920
Width = 1935
Begin
VB.Image Image5
Height = 1575
Left = 120
Stretch = -1 'True
Top = 240
Width = 1695
End
End
Begin VB.Frame Frame4
Height = 1935
Left = 5760
TabIndex = 3
Top = 0
Width = 1935
Begin VB.Image Image4
Height = 1575
Left = 120
Stretch = -1 'True
Top = 240
Width = 1695
End
End
Begin VB.Frame Frame3
Height = 1935
Left = 3840
TabIndex = 2
Top = 0
Width = 1935
Begin VB.Image Image3
Height = 1575
Left = 120
Stretch = -1 'True
Top = 225
Width = 1695
End
End
Begin VB.Frame Frame2
Height = 1935
Left = 1920
TabIndex = 1
Top = 0
Width = 1935
Begin VB.Image Image2
Height = 1575
Left = 120
Stretch = -1 'True
Top = 240
Width = 1695
End
End
Begin VB.Frame Frame1
Height = 1935
Left = 0
TabIndex = 0
Top = 0
Width = 1935
Begin VB.Image Image1
Height = 1575
Left = 120
Stretch = -1 'True
Top = 240
Width = 1695
End
End
Begin VB.FileListBox File1
Height = 1170
Left = 75
TabIndex = 15
Top = 4290
Width = 1230
End
Begin VB.Label nisse
Alignment = 2 'Center
Caption = "-"
Height = 240
Left = 105
TabIndex = 11
Top = 6240
Visible = 0 'False
Width = 750
End
End
Attribute VB_Name = "Thumb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim JB As Integer
Sub uppd()
Frame1.Visible = True
Frame2.Visible = True
Frame3.Visible = True
Frame4.Visible = True
Frame5.Visible = True
Frame6.Visible = True
Frame7.Visible = True
Frame8.Visible = True
On Error GoTo balle1
File1.ListIndex = JB
If Right(File1.Path, 1) <> "\" Then
nisse.Caption = File1.Path & "\" & File1.FileName
Else
nisse.Caption = File1.Path & File1.FileName
End If
Frame1.Caption = File1.FileName
Image1.Picture = LoadPicture(nisse.Caption)
On Error GoTo balle2
JB = JB + 1
File1.ListIndex = JB
If Right(File1.Path, 1) <> "\" Then
nisse.Caption = File1.Path & "\" & File1.FileName
Else
nisse.Caption = File1.Path & File1.FileName
End If
Frame2.Caption = File1.FileName
Image2.Picture = LoadPicture(nisse.Caption)
On Error GoTo balle3
JB = JB + 1
File1.ListIndex = JB
If Right(File1.Path, 1) <> "\" Then
nisse.Caption = File1.Path & "\" & File1.FileName
Else
nisse.Caption = File1.Path & File1.FileName
End If
Frame3.Caption = File1.FileName
Image3.Picture = LoadPicture(nisse.Caption)
On Error GoTo balle4
JB = JB + 1
File1.ListIndex = JB
If Right(File1.Path, 1) <> "\" Then
nisse.Caption = File1.Path & "\" & File1.FileName
Else
nisse.Caption = File1.Path & File1.FileName
End If
Frame4.Caption = File1.FileName
Image4.Picture = LoadPicture(nisse.Caption)
On Error GoTo balle5
JB = JB + 1
File1.ListIndex = JB
If Right(File1.Path, 1) <> "\" Then
nisse.Caption = File1.Path & "\" & File1.FileName
Else
nisse.Caption = File1.Path & File1.FileName
End If
Frame5.Caption = File1.FileName
Image5.Picture = LoadPicture(nisse.Caption)
On Error GoTo balle6
JB = JB + 1
File1.ListIndex = JB
If Right(File1.Path, 1) <> "\" Then
nisse.Caption = File1.Path & "\" & File1.FileName
Else
nisse.Caption = File1.Path & File1.FileName
End If
Frame6.Caption = File1.FileName
Image6.Picture = LoadPicture(ni