Im trying to figure out how to make one button fire many events..but have it button click driven ..
i have let say 3 picturebox's on the screen all .visabel = false so when they click the "show" button one appears...then click again 2 appear .. and so on ..can someone help ?
click button
picture 1 appears
click button
picture 1 is still there
picture 2 appears
click button
pic1
pic2
+ pic 3
here you put picturebox(last) it keeps saying "picturebox is not a type that can be used for this"
Static mlngLast As Long
Inherits System.Windows.Forms.Form
Dim Last As Byte
Private Sub btnPresents_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPresents.Click
Static Last As Long
Static mingLast As Long
If mingLast <= PictureBox2.UBound Then
PictureBox2(mingLast).Visible = True
mingLast = mingLast + 1
End If
End Sub
have pictuebox2 (just to be generic) but its squiggled out .. ?
i have let say 3 picturebox's on the screen all .visabel = false so when they click the "show" button one appears...then click again 2 appear .. and so on ..can someone help ?
click button
picture 1 appears
click button
picture 1 is still there
picture 2 appears
click button
pic1
pic2
+ pic 3
here you put picturebox(last) it keeps saying "picturebox is not a type that can be used for this"
Static mlngLast As Long
Inherits System.Windows.Forms.Form
Dim Last As Byte
Private Sub btnPresents_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPresents.Click
Static Last As Long
Static mingLast As Long
If mingLast <= PictureBox2.UBound Then
PictureBox2(mingLast).Visible = True
mingLast = mingLast + 1
End If
End Sub
have pictuebox2 (just to be generic) but its squiggled out .. ?