已经会一点点了,请各位多多指教!谢谢!
选用图片
Private Sub Image1_Click()
If Image1.Enabled = True Then
On Error GoTo s1
= True
= "Windows位图,图标 (*.bmp;*.ico)|*.bmp;*.ico|JPEG(*.jpg)|*.jpg;*.jpeg" '“指明打开图片的类型“
If = "" Then Exit Sub
strName =
Me.Image1.Picture = LoadPicture(strName)
'“加载图片”
Exit Sub
s1:
strName = ""
End If
保存图片到指定的文件夹:
SavePicture Me.Image1.Picture, App.Path & "\Img\" & Text1.Text & ".jpg" '自定义图片名称
读取图片:
Image1.Picture = LoadPicture(App.Path & "\Img\" & mrc.Fields(1) & ".jpg ")