listbox items added not visible

  • Thread starter Thread starter cs_hart
  • Start date Start date
C

cs_hart

This is a newbie question.
I use the following to add items to the list box. When I look at the
box, I see rows have been added. I can scroll and select an item and
obtain the row in the listbox handler. But there is no actual text in
the box. I added the j variable just to see if the rows were being
incremented. I didn't think I need the visible = true statement but
added it just to be sure.
This seems like elementry code so I'm sure this is something basic I'm
missing.
thanks...charlie

For i As Int16 = 0 To 5
Dim j as int = DateListBox.Items.Add("date1")
= DateListBox.Items.Add("date2")
j = DateListBox.Items.Add(selectDates(i))
Next
DateListBox.Visible = True
 
I use the following to add items to the list box. When I look at the
box, I see rows have been added. I can scroll and select an item and
obtain the row in the listbox handler. But there is no actual text in
the box.

Maybe the problem is caused by an unpatched virus scanner. These symptoms
are typically caused by a McAfee VirusScan problem that NAI is aware of and
that can
be fixed by installing a patch:

Patch 5 for McAfee VirusScan Enterprise 8.0i
<URL:https://knowledgemap.nai.com/phpclient/viewKDoc.aspx?url=kb/kb_kb38717.xml&docType=DOC_KnowledgeBase>
 
As an update, after I handle a button click to process the list
selection, the values in the list box are visible. Strange to me.
 
Back
Top