listbox problem in vb.net

G

Guest

I'm having a problem getting listbox items to show up in VB.NET. I'm using
a test program that has one form with a listbox. I'm using this code in the
form load event:

Dim x As Integer
For x = 1 To 50
Me.ListBox1.Items.Add("Item " & x.ToString())
Next x
Dim i As Integer
i = Me.ListBox1.Items.Count

The count property is correct (50), but nothing shows up in the listbox. I
can select rows, but all are blank.

Any ideas?
 
H

Herfried K. Wagner [MVP]

Ron Call said:
I'm having a problem getting listbox items to show up in VB.NET. I'm
using
a test program that has one form with a listbox. I'm using this code in
the
form load event:
[...]
The count property is correct (50), but nothing shows up in the listbox.
I
can select rows, but all are blank.

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

Guest

That patch fixed the issue. Thanks!!

Herfried K. Wagner said:
Ron Call said:
I'm having a problem getting listbox items to show up in VB.NET. I'm
using
a test program that has one form with a listbox. I'm using this code in
the
form load event:
[...]
The count property is correct (50), but nothing shows up in the listbox.
I
can select rows, but all are blank.

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>
 

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