Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Agent00Kevin

    Help Creating PictureBox Array Event Handler at Runtime

    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...
  2. Agent00Kevin

    Help Creating PictureBox Array Event Handler at Runtime

    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...
  3. Agent00Kevin

    Help Creating PictureBox Array Event Handler at Runtime

    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.
  4. Agent00Kevin

    Help Creating PictureBox Array Event Handler at Runtime

    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...
  5. Agent00Kevin

    Creating PictureBox Array Event Handler at Runtime

    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...

Part and Inventory Search

Back
Top