I have the following code inside a for loop:
ComboboxItem itemb = new ComboboxItem(); itemb.Text = item.gameName; itemb.Value = item.name; ASCII_FriendList.Items.Add(itemb);
ASCII_FriendList is the ListBox and I want to display item.gameName because item.name is a random uuid, therefore is unreadable. The gameName can be recognised pretty easily.
So far I haven't found a solution, what alternative do I have?
https://stackoverflow.com/questions/65432585/c-sharp-set-value-of-listbox-as-a-string December 24, 2020 at 08:31AM
没有评论:
发表评论