VB点击按钮怎么在picture中换图片
1个回答
展开全部
创建名为image1的数组image控件[image1(0)---image1(4)],并加载好图片
Dim i As Integer
Private Sub Command1_Click()
Command1.Style = 1
If i > 4 Then i = 0
Command1.Picture = image1(i).Picture
i = i + 1
End Sub
Dim i As Integer
Private Sub Command1_Click()
Command1.Style = 1
If i > 4 Then i = 0
Command1.Picture = image1(i).Picture
i = i + 1
End Sub
追问
用的是picturebox 呢
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询