http://pastebin.com/1PiJgWj6 @wio
What is `BattleScreen1.ComboBox1` ?
a dropdown box. Battlescreen1 is a usercontrol on form2.
Does it give you any error when it shuts down?
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.
Or rather, how do you even know what is being reached or not?
You are using properties of ListControl but they're a ComboBox?
Oh, I see, it's inherited stuff
yee.
could the Display Value Members be taken?
not sure what you mean
like is "id" being used for something else.
it's not. It's just a property of Enemy.
Hmm, maybe print out those properties first, just to see what happens
unless you can tell through debugger
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.
I'm probably just setting the property wrong, but I'm following the MSDN documentation's example, but I dunno.
shouldn't `labels()` do what the last line is doing anyway?
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.
Okay, it shouldn't even be displaying the IDs, should it? It should show the names
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.
does labels work if you run it before you add the combo box stuff?
it does, but the combobox is still invisible ;_;
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
Join our real-time social learning platform and learn together with your friends!