Some Windows Form controls do not display contents properly

Posted on 2005-05-03
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
    LVL 21

    Expert Comment

    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

    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

    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.
    LVL 11

    Accepted Solution

    Did you run the upgarde for McAfee. Cause i also had similar problem and after upgrading McAfee it was resolved.
    Some similar link

    LVL 11

    Expert Comment


    Author Comment

    Jatinder -

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    In one of my recent projects, I was working with IP cameras, I need to take some pictures from the camera and do some processing on it. The first step, was to retrieve the image from camera into Image object. So that it can be displayed or …
    Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now