vb命令按钮控制图片
PrivateSubCommand5_Click()Image1.Picture=LoadPicture("C:\Users\zhengjie2533\Desktop\V...
Private Sub Command5_Click()
Image1.Picture = LoadPicture("C:\Users\zhengjie2533\Desktop\VB+SQL酒店餐饮\菜\r拌肺片.jpg")
End Sub
如上,按一下命令按钮图框出现图片,如何再按一下这个按钮,让图片消失。 展开
Image1.Picture = LoadPicture("C:\Users\zhengjie2533\Desktop\VB+SQL酒店餐饮\菜\r拌肺片.jpg")
End Sub
如上,按一下命令按钮图框出现图片,如何再按一下这个按钮,让图片消失。 展开
展开全部
Private Sub Command5_Click()
Static a As Boolean
a = Not a
If a Then
Image1.Picture = LoadPicture("C:\Users\zhengjie2533\Desktop\VB+SQL酒店餐饮\菜\r拌肺片.jpg")
Else
Image1.Picture = LoadPicture("")
End If
End Sub
Static a As Boolean
a = Not a
If a Then
Image1.Picture = LoadPicture("C:\Users\zhengjie2533\Desktop\VB+SQL酒店餐饮\菜\r拌肺片.jpg")
Else
Image1.Picture = LoadPicture("")
End If
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询