Luke L
09-11-2012, 11:29 PM
Ok so i'm taking my first programming class in college, CMIS 142, programming in visual basic.
We have only had two labs , and all we've really learned how to do is code for click button events, check boses, and how to display output into text boxes.
Just for fun I've decided to build my own little equipment builder. It will have no real use besides to make it for fun. Here is what it looks like:
http://i45.tinypic.com/2ntbtk5.png
What I want it to do is, have like maybe two different choices in each drop down box. When I select the choice, I'm going to have a picture box for each item, that is over the main picture box (that you can see). It will be set to "not visible" to start off with, then when the item is selected from the combo box, I want it to then " = helmofnetiznotPictureBox.visible".
That way when it is selected, the picture will become visible and look as if it is "equipped".
Later on I'll be playing with the math to get the stats displayed in the display only text box under that main picturebox, but for now i'm stuck.
I got those things in the combo box list just by hitting "edit items" in the combo box little menu. But how do I code for the specific things that are in the combo box drop down box?
Like I said, I want to select one and have it make the picture visible.
I know for like a checkbox it would be "HelmofneitiznotCheckbox.checked = HelmofneitiznotPicturebox.visible"
But I want to have more then one option available, hence the combobox and not the checkbox. No experience with combo boxes, please help!
edit: also hopefully if someone can help me with that first, what method do I use to "clear" my combo boxes? I want my "Resetbutton" to return them to their blank default, but not sure how..
We have only had two labs , and all we've really learned how to do is code for click button events, check boses, and how to display output into text boxes.
Just for fun I've decided to build my own little equipment builder. It will have no real use besides to make it for fun. Here is what it looks like:
http://i45.tinypic.com/2ntbtk5.png
What I want it to do is, have like maybe two different choices in each drop down box. When I select the choice, I'm going to have a picture box for each item, that is over the main picture box (that you can see). It will be set to "not visible" to start off with, then when the item is selected from the combo box, I want it to then " = helmofnetiznotPictureBox.visible".
That way when it is selected, the picture will become visible and look as if it is "equipped".
Later on I'll be playing with the math to get the stats displayed in the display only text box under that main picturebox, but for now i'm stuck.
I got those things in the combo box list just by hitting "edit items" in the combo box little menu. But how do I code for the specific things that are in the combo box drop down box?
Like I said, I want to select one and have it make the picture visible.
I know for like a checkbox it would be "HelmofneitiznotCheckbox.checked = HelmofneitiznotPicturebox.visible"
But I want to have more then one option available, hence the combobox and not the checkbox. No experience with combo boxes, please help!
edit: also hopefully if someone can help me with that first, what method do I use to "clear" my combo boxes? I want my "Resetbutton" to return them to their blank default, but not sure how..