Sign in with
Sign up | Sign in
Your question

Visual BASIC Checkboxes

Last response: in Applications
Share
Anonymous
September 6, 2012 11:56:46 PM

I am trying to make a multiple choice quiz in Visual BASIC and I am in need of the code needed to make one checkbox the correct one and tyhe other 3 register as incorrect if the player chooses it. It would be helpful to have a score counter as well. I am reletaviely new to VB, it is my first programming language, so bear with me. I have everything that I need except how to progra the darn checkboxes for correct/incorrect. I beliee that it involves an "If" command. Thank you for any help, all is appreciated.
a b L Programming
September 7, 2012 1:22:40 AM

This sounds suspiciously like a school assignment. Sorry no free code.
m
0
l
a b L Programming
September 7, 2012 4:17:05 AM

Have an array of right choices. Like: {0, 2, 1, 2, 3} - the correct answers are first, third, second, third, fourth. And with IF just check whether the correct index is selected.
m
0
l
!