I'm adding items from a List to a CheckedListBox. I want that box to display the friendly name of the item to the user but have a "secret" actual value to use when the user selects it.
foreach (string s in x)
{
checkedlistBox1.Items.Add(friendlyValue);
//Now how do I get this to have the real value?
}
With drop down menus I can set the DisplayName and ValueName to something and use something like:
combobox1.Items.Add(new ComboBoxItem { friendlyValue = x, realValue = y });
I can't seem to do this with a CheckedListBox.