Listbox Display problem
Posted on 2006-05-16
I have a Windows form which contains some buttons, a text box and a list box. One of the buttons causes the list box to be populated. When tested on 8 Win XP Pro computers(all with .Net Framework 1.1) at my customer's location half of the computers did not display the data that was added to the list box. Even though the individual lines on the list box were not visible, a vertical scroll bar did appear. Also I can highlight a line. I can tell where the items in the list box stop because I cannot hightlight beyond that point. I added some code to the listbox_selectedIndexchanged event so that when I select a blank line, the contents of the line are displayed in the text box. All the data from the list box line is diplayed in the text box.
I have added Form.Refresh and Form.Listbox.refresh at various places. I have made the list box not visible and then visible again. But nothing I have tried makes the list box's text visible on those computers.
The other computers display the data without incident.