Some Windows Form controls do not display contents properly

Posted on 2005-05-03
Medium Priority
Last Modified: 2010-04-16
I have an issue with a C# application I wrote in Visual Studio .NET 2003.  I have two computers here.  Both are running Windows XP Pro SP2.  On one machine, the application works perfectly.  On the other, whenever I run the application it appears that all of the combo/list boxes are empty.  However, clicking in these controls reveals the item beneath the mouse pointer.  Therefore, they're not empty, the contents are just invisible.  I've tried refresh() methods for the entire form and for individual controls, with no success.  Normally the controls are populated from a database, but I've tried hard-coding values into the controls with the same result.

Is this some kind of problem with the computer in question, or does it indicate some kind of flaw in the code?
Question by:Smitty81
  • 3
  • 2
LVL 21

Expert Comment

ID: 13923645
I had something like you have, some listboxes were empty only on some machines... weird, took me quite a while to figure out -  do you reset DataSource for any of your combo/list boxes anywhere, just like this?:

myCmb.DataSource = null;

if you do, just comment it out since DataSource is reseted as soon as you assign a new one... It helped in my case.

LVL 11

Expert Comment

ID: 13923692
It's problem with machine.

If you are running McAfee then stop the service and test the program again.

Do install service pack for .Net Framework and windows updates.


Author Comment

ID: 13924264
I'm running .NET Framework 1.1 SP1, which I think is the latest service pack...could be wrong.

Stopping the McAfee service didn't solve the problem.  Are there any other programs that might cause this to happen?  Thanks for the advice.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 11

Accepted Solution

jatinderalagh earned 500 total points
ID: 13924331
Did you run the upgarde for McAfee. Cause i also had similar problem and after upgrading McAfee it was resolved.
Some similar link


Author Comment

ID: 13924374
Jatinder -

That link had the answer.  Disabling the buffer overflow protection in McAfee solved my problem.  Thanks very much for your help. :)

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question