listbox problem in vb.net

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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>
 
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>
 
Back
Top