listbox contains values but no text

May 19 2005 5:42 AM
i added a listbox on a windows form and added 3 or more items by the properties windows (under the selection: collections). when i run the application you can click with the mouse on the 3 items but these items contains no text. so you can't see what item you click. I tried also to add a second listbox, and in the code i set the code: string str = "First item"; listBox2.Items.Add(str); But the same problem, you can see with a selection that there is a value but you can't see any text. (It's a blue bar with no text) p.s. : I use the program 'Visual Studio 2003' to program the code

Answers (1)