【发布时间】:2017-06-01 08:12:42
【问题描述】:
我有一个名为
的文件夹App.Path & "\Images"
在其中我有 5 张图片,在我的 Form 中还有 5 张 Pictureboxes。现在我的问题是,如何一次将它们全部显示为PictureBox 每Image?到目前为止,这是我的代码
Picture1.Picture = LoadPicture("Path")
这是我到目前为止所做的
Dim c As Control
Dim ImageLink As String
With vs1
For Each c In Form1
For i = 1 To .Rows - 1
If Len(ImageLink) > 0 Then ImageLink = ImageLink
Debug.Print c.Picture
Debug.Print .TextMatrix(i, .ColIndex("Image"))
MsgBox .TextMatrix(i, .ColIndex("Image"))
c.Picture = LoadPicture("C:\Users\paul\Desktop\Gondola Monitoring System\Image\" & .TextMatrix(i, .ColIndex("Image")))
Next
Next
End With
Form1.Show
我尝试在 flexgrid 中写入文件名并在每个控件中调用它。
TYSM 寻求帮助
【问题讨论】:
标签: image vb6 picturebox