I have two combo boxes, each with a collection from 0 - 10.
A number has been generated using the randomize() function - between 1 - 20 and is shown in a label.text.
My problem involves the combo boxes not actually 'adding up' like numbers should. Maybe because they aren't actually number at all, I'm not sure.
So for example, the random number equals to 10.
You use the dropdown boxes to find the numbers that equal to 10. And so after that, when you click - I guess, an 'Enter' button, it doesn't equal.
I've been using this code:
If Combobox1.SelectedItem + Combobox2.SelectedItem = label3.text then
Am I on the right track?
Software/Hardware used: Microsoft Visual basic 2010 Express
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!