I'm having trouble figuring out how to add items to a ListBox
in WinForms.
I'm trying:
list.DisplayMember = "clan";
list.ValueMember = sifOsoba;
How can I add items to the list with an int
value (ValueMember
) and some text (for the DisplayMember
)?
list.Items.add(?)
I can't use ListBoxItem
. Why?