ComboBox text blank, data is there

J

JD Williams

Greetings,

I have a combobox that I have data added to when I defined it. Like
so:
'cbDCs
'
Me.cbDCs.Items.AddRange(New Object() {"ADC1", "ADC2", "ADC3"})
Me.cbDCs.Location = New System.Drawing.Point(400, 48)
Me.cbDCs.Name = "cbDCs"
Me.cbDCs.Size = New System.Drawing.Size(184, 21)
Me.cbDCs.TabIndex = 22
Me.cbDCs.Text = "ComboBox1"

When I run my app, the combobox is there and if I drop it down, it
appears to be about three lines deep, but there's no text, it is just
an empty box. However, the data is there. If I select a line, the
value in the line appears in the top of the combobox. If the combobox
has focus, I can wheel mouse or up/down arrow through it.

What do I need to do so I can see the text in the list???

Thanks,

JD
 
K

Ken Halter

JD Williams said:
What do I need to do so I can see the text in the list???

This wreaks of the McAfee 8 bug (buffer overflow, iirc). Are you running
McAfee 8? This one drove me absolutely nuts for a while in VB6. Since I
don't touch McAfee/Norton bloatware, I could never repro the bug. The
customers never mentioned and I never suspected the virus scanner as a
possible problem... can you say "arghhhhhhh"? <g> The post below contains a
link to the hotfix (along with my opinion of McAfee <g>) but it's no longer
valid... which means you'll have to poke around the McAfee site to find it.

Can't see items in Combo Box dropdown
http://groups.google.com.my/group/microsoft.public.vb.controls/browse_frm/thread/017c76792d22cb34
 
J

JD Williams

Ken,

Brilliant! As soon as I saw McAfee in your post steam started coming
out my ears. You're right, both in terms of it keeping my combobox
blank as well as your evaluation of the product. This is the third
thing that McAfee has caused me to loose a day or more of time working
out.

Much obliged, Sir! I don't know that I ever would have thought to look
at it as a combobox text robber.
 

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