You mentioned that I can get the coordinates just fine without a case statement. How do I do that? If someone clicks the square in the 3rd row, 4th column for example, that would be picGameSquare(3, 4). I need to be able to grab the 3 and the 4 to use it in my code. I will be comparing the...
Thanks again! Now that I have everything in place, I need to figure out how to determine which PictureBox in the array caused the event. I looked at the example code from the help menu, (which is for a button) but it doesn't work. This is the code in the example:
Private Sub...
Thanks, I got it to work. However, I got an error with the AddHandler statement. I got it to work by using:
AddHandler pb.Click, AddressOf Me.PictureBox_Click
(therefore adding the ".Click")
Just wanted to confirm that this sounds correct to you.
I'm programming a simple game that uses an 8 by 8 game board (just like a chess board). Each square is part of a PictureBox array that is created at runtime. I used the following code:
Dim picSquareImage(8, 8) As PictureBox
I could never figure out how to create a PictureBox array at...
I'm programming a simple game that uses an 8 by 8 game board (just like a chess board). Each square is part of a PictureBox array that is created at runtime. I used the following code:
Dim picSquareImage(8, 8) As PictureBox
I could never figure out how to create a PictureBox array at...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.