I want to have each click on the picturebox do something according to which click it is. The first will set the box to 3d border, the next will set it back to no border.
I thought for sure this would work:
But alas, the picturebox's border doesn' change. The picturebox's border will change if I have only one action for it to take, like just make the picturebox's border 3d when someone clicks on it. But I want the person to be able to click on the picturebox again to reset it.VB Code:
Private Sub pbxDieOne_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pbxDieOne.Click If clickCntrD1 = 0 Then clickCntrD1 += 1 pbxDieOne.BorderStyle = pbxDieOne.BorderStyle.Fixed3D 'next the image will become a blank die so we can tell which dice we have chosen to change End If If clickCntrD1 = 1 Then pbxDieOne.BorderStyle = pbxDieOne.BorderStyle.None 'next the image will become a blank die so we can tell which dice we have chosen to change clickCntrD1 = 0 End If
THank you in advance.




Reply With Quote