vb中的图像控件怎样设置? 20
这有一段代码,试着运行时总告知:“对象变量或with块变量未设置”,怎么这是呢?PrivateSubsetimg()DimiAsIntegerDimimg(0To6)As...
这有一段代码,试着运行时总告知:“对象变量或with块变量未设置”,怎么这是呢?
Private Sub setimg()
Dim i As Integer
Dim img(0 To 6) As Image
Dim imgbj As Image
Dim imgjx As Image
i = 0
For i = 0 To 6
Set img(i).Picture = imglist.ListImages(1).Picture
img(i).Visible = True
Next
Set imgbj.Picture = imglist.ListImages(11).Picture
Set imgjx.Picture = imglist.ListImages(14).Picture
End Sub
调试程序时显示这一句有问题:Set img(i).Picture = imglist.ListImages(1).Picture
折磨了我好几天了,就是不知道怎样修改 展开
Private Sub setimg()
Dim i As Integer
Dim img(0 To 6) As Image
Dim imgbj As Image
Dim imgjx As Image
i = 0
For i = 0 To 6
Set img(i).Picture = imglist.ListImages(1).Picture
img(i).Visible = True
Next
Set imgbj.Picture = imglist.ListImages(11).Picture
Set imgjx.Picture = imglist.ListImages(14).Picture
End Sub
调试程序时显示这一句有问题:Set img(i).Picture = imglist.ListImages(1).Picture
折磨了我好几天了,就是不知道怎样修改 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询