运行程序时出现错误。我想将图像更改为另一个图像,但图像不会改变。请帮我找出来。
这是我的代码:
Public Image1Color As String
Public Image1 As Image
Public Sub CheckIn()
If Image1Color = "Green" Then
Image1.Picture = LoadPicture("Color\red1.jpg")
Image1Color = "Red"
Else
MsgBox ("This table is already occupied!")
End If
End Sub