I'm having trouble figuring out how to add items to a ListBox
in WinForms.
I have tried:
list.DisplayMember = "clan";
list.ValueMember = sifOsoba;
How can I add ValueMember
to the list with an int
value and some text for the DisplayMember
?
list.Items.add(?)
Btw. I can't use ListBoxItem
for any reasons.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…