D Doker Sep 10, 2007 #2 Arne pisze: How do I add value /text pair item to a listbox on a winform? Click to expand... that way: listBox1.ValueMember = "Key"; // set once listBox1.Items.Add( new KeyValuePair<string,object>("foo",new object()));
Arne pisze: How do I add value /text pair item to a listbox on a winform? Click to expand... that way: listBox1.ValueMember = "Key"; // set once listBox1.Items.Add( new KeyValuePair<string,object>("foo",new object()));
D Doker Sep 10, 2007 #3 Arne pisze: How do I add value /text pair item to a listbox on a winform? Click to expand... listBox1.ValueMember = "Key"; listBox1.Items.Add(new KeyValuePair<string,object>("foo",new object())); Best regards, JarosÅ‚aw JaskuÅ‚owski Åódź, Polska
Arne pisze: How do I add value /text pair item to a listbox on a winform? Click to expand... listBox1.ValueMember = "Key"; listBox1.Items.Add(new KeyValuePair<string,object>("foo",new object())); Best regards, JarosÅ‚aw JaskuÅ‚owski Åódź, Polska
G Guest Sep 11, 2007 #4 My key is displayed in the listbox, with the code you supplied. I want the value to be hidden and my text to be displayed. When someone clicks on the text, I wnt to programmatically retrieve the value.
My key is displayed in the listbox, with the code you supplied. I want the value to be hidden and my text to be displayed. When someone clicks on the text, I wnt to programmatically retrieve the value.