Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (poopsiedoodle):

http://pastebin.com/1PiJgWj6 @wio

OpenStudy (anonymous):

What is `BattleScreen1.ComboBox1` ?

OpenStudy (poopsiedoodle):

a dropdown box. Battlescreen1 is a usercontrol on form2.

OpenStudy (anonymous):

Does it give you any error when it shuts down?

OpenStudy (poopsiedoodle):

well, it doesn't shut down, it just doesn't reach that one line in the code. I set some breakpoints in there, and after I set the valuemember, it didn't go to the next point and just ran. However, the combobox was invisible, but I could still click and use it.

OpenStudy (anonymous):

Or rather, how do you even know what is being reached or not?

OpenStudy (poopsiedoodle):

OpenStudy (anonymous):

You are using properties of ListControl but they're a ComboBox?

OpenStudy (anonymous):

Oh, I see, it's inherited stuff

OpenStudy (poopsiedoodle):

yee.

OpenStudy (anonymous):

could the Display Value Members be taken?

OpenStudy (poopsiedoodle):

not sure what you mean

OpenStudy (anonymous):

like is "id" being used for something else.

OpenStudy (poopsiedoodle):

it's not. It's just a property of Enemy.

OpenStudy (anonymous):

Hmm, maybe print out those properties first, just to see what happens

OpenStudy (anonymous):

unless you can tell through debugger

OpenStudy (poopsiedoodle):

well, the ID loads into the combobox just fine, but the combobox doesn't display correctly, and the labels aren't changed like they should be.

OpenStudy (poopsiedoodle):

I'm probably just setting the property wrong, but I'm following the MSDN documentation's example, but I dunno.

OpenStudy (anonymous):

shouldn't `labels()` do what the last line is doing anyway?

OpenStudy (poopsiedoodle):

that was just a test, but yeah, that's what that's there for. I was seeing if it would work if I put that there after it, and it didn't.

OpenStudy (anonymous):

Okay, it shouldn't even be displaying the IDs, should it? It should show the names

OpenStudy (poopsiedoodle):

yeah idk what's up with that, but that's what it's doing. Even after I set the displaymember to "name", it still said it was "" in the watch list.

OpenStudy (anonymous):

does labels work if you run it before you add the combo box stuff?

OpenStudy (poopsiedoodle):

it does, but the combobox is still invisible ;_;

OpenStudy (poopsiedoodle):

OpenStudy (anonymous):

There are a lot of things worth trying to figure it out, like creating a more simple array and trying to get that to work

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!