VB Help? Dont Laff :)

Started by
1 comment, last by CoiN 23 years, 11 months ago
Lo All, Ive programmed a version of tic tac toe in VB(:/) which consists of 9 seperate labels for each box, but I wanna upgrade it now and I was thinking of using an array of labels, but When Id done it I realised that no matter which label I click on its only going to run the same Piece of code which in my program results in the first label getting a O in it. So i was just wondering if there was anyway of detected which label in the array was clicked on so i Could use and if statement to decide where to put the O or X. Ummm.... Thanks
Advertisement
Sure,

normally the sub will give an index as parameter.
The index has the number of the label you selected.

BTW I also made some games with VB.
You can check them out at

http://members.spree.com/entertainment/bad_software/

Bey



The Rock
The Rock
Hehe thanks man i never noticed that index thing

This topic is closed to new replies.

Advertisement