我正在尝试检查我的 panel0.background 图像是否与资源中的图像相同,然后将一些字符串添加到 arraylist。
这似乎不起作用:
If (Panel0.BackgroundImage Is My.Resources.Dinoback) Or (Panel0.BackgroundImage Is My.Resources.Dinoback2) Then
Form1.jenisbuddyarr.Add("dino")
ElseIf (Panel0.BackgroundImage Is My.Resources.Rabbitback) Or (Panel0.BackgroundImage Is My.Resources.Rabbitback2) Then
Form1.jenisbuddyarr.Add("rabbit")
ElseIf (Panel0.BackgroundImage Is My.Resources.Squirrelback) Or (Panel0.BackgroundImage Is My.Resources.Squirrelback2) Then
Form1.jenisbuddyarr.Add("squirrel")
End If