📄 picturedoc.dob
字号:
VERSION 5.00
Begin VB.UserDocument pictureDoc
BackColor = &H80000009&
ClientHeight = 9000
ClientLeft = 0
ClientTop = 0
ClientWidth = 10710
HScrollSmallChange= 225
ScaleHeight = 9000
ScaleWidth = 10710
VScrollSmallChange= 225
Begin VB.CommandButton Command1
Caption = "另一个示例"
Height = 375
Left = 135
TabIndex = 2
Top = 585
Width = 1455
End
Begin VB.PictureBox Picture1
AutoSize = -1 'True
Height = 8655
Left = 2610
ScaleHeight = 8595
ScaleWidth = 6165
TabIndex = 0
Top = 135
Width = 6225
End
Begin VB.Label Label1
Caption = "异步下载数据"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 135
TabIndex = 1
Top = 90
Width = 2355
End
End
Attribute VB_Name = "pictureDoc"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Option Explicit
Private Sub Command1_Click()
Dim strPath As String
Dim strAbsPath As String
Dim strCharPos As Long
strPath = UserDocument.Parent.LocationURL
For strCharPos = Len(strPath) To 1 Step -1
If Mid(strPath, strCharPos, 1) = "/" Or Mid(strPath, strCharPos, 1) = "\" Then Exit For
Next strCharPos
strAbsPath = Left(strPath, strCharPos)
Hyperlink.NavigateTo strAbsPath & "TextDoc.vbd"
End Sub
Private Sub UserDocument_AsyncReadComplete(AsyncProp As AsyncProperty)
Select Case AsyncProp.PropertyName
Case "PictData"
Set Picture1.Picture = AsyncProp.Value
End Select
End Sub
Private Sub UserDocument_AsyncReadProgress(AsyncProp As AsyncProperty)
Select Case AsyncProp.StatusCode
Case vbAsyncStatusCodeEndDownloadData
MsgBox " DownLoad Complete ....."
End Select
End Sub
Private Sub UserDocument_InitProperties()
UserDocument.AsyncRead "http://gb.ezla.com.tw/images/newbook/b16.jpg", vbAsyncTypePicture, "PictData"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -