怎么用vb的PictureBox控件显示不同的图片?

2024-12-27 23:32:26
推荐回答(1个)
回答1:

似乎得使用三个image控件 把每个控件完全重叠在一起 然后用每个image的visible(可见)属性来实现


比如:

Private Sub Command1_Click()
Image1.Visible = True
Image2.Visible = False
Image3.Visible = False
End Sub
Private Sub Command2_Click()
Image1.Visible = False
Image2.Visible = True
Image3.Visible = False
End Sub
Private Sub Command3_Click()
Image1.Visible = False
Image2.Visible = False
Image3.Visible = True
End Sub


望采纳