展开全部
Private Sub Command1_Click()
Static pic_changed As Boolean
If pic_changed = False Then
Me.Picture1.Picture = LoadPicture("C:\temp\1.jpg")
Else
Me.Picture1.Picture = LoadPicture("C:\temp\2.jpg")
End If
pic_changed = Not pic_changed
End Sub
Static pic_changed As Boolean
If pic_changed = False Then
Me.Picture1.Picture = LoadPicture("C:\temp\1.jpg")
Else
Me.Picture1.Picture = LoadPicture("C:\temp\2.jpg")
End If
pic_changed = Not pic_changed
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询