📜  使用按钮切换图片 vb.net - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:55.407000             🧑  作者: Mango

代码示例1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    PictureBox1.Tag = Not CBool(PictureBox1.Tag)
    PictureBox1.Image = If(CBool(PictureBox1.Tag), My.Resources.[Picture 1], My.Resources.[Picture 2])
End Sub