By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,462 Members | 799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,462 IT Pros & Developers. It's quick & easy.

HELP trying to figure out how to code buttons that match in VB 2012

P: 1
I have started a game for a class project. being that I am new to VB It should be very simple. I used 16 buttons to cover 16 pictures and added a start button. I coded the button event handler to show the pictures when clicked, But now I'm trying to figure out how to code if btn1 and btn11 are clicked and are a match to make buttons invisible and pic invisable
I thought it would be something like thsi
Expand|Select|Wrap|Line Numbers
  1. If btn1.clicked and btn11.clicked then
  2.    btn1.Enabled= False
  3.    btn11.Enabled = False
  4.    Pic1.visable =False
  5.    Pic11.visable =False
  6. end if 
  7.  
But btn1.clicked can not be used
can anyone help me.. Please
Dec 10 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.