listbox items added not visible

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
 
H

Herfried K. Wagner [MVP]

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>
 
C

cs_hart

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top