Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

CoiN

VB Help? Dont Laff :)

This topic is 6928 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!