ListBox Items not Visible

Posted on 2004-11-19
Last Modified: 2008-03-17
In windows form I just created a ListBox.

Added some items
and so on.

When I run it - these entries are not visible.
I just added a textBox and captured the ListBox1_SelectedIndexChanged event to put the Item's value to the TextBox.  The textBox is getting filled the correct data when I navigate in the ListBox.  It is just that the ListBox Items are not visible.  Looks  very strange to me.

Any ideas will be appreciated.

Question by:getsudha
    LVL 5

    Expert Comment

    Try adding "this." to every ListBox1 reference.

    I assume you're adding the items during the Form.Load event, right?
    LVL 8

    Accepted Solution

    LVL 8

    Expert Comment

    Glad that fixed your problem.   Just in case the above link every breaks, here is the solution for all you future answer seekers...

    I recently installed McAfee 8 and the buffer overflow protection was the
    culprit. Once disabled the messagebox behaved normally. Many thanks to
    those who pointed this out.

    Author Comment

    Yes that was it.  Thanks a lot for finding it.  
    Buffer Overflow protection of mcAfee VirusScan Enterprise ver. 8.0i was the culprit.  I am going to post this to mcAfee, they can change the definition for Buffer OverFlow protection to avoid this.

    LVL 9

    Expert Comment

    This was supposedly fixed, but we keep updated with the latest versions (daily) and we still have this problem. The irritant is that most users cannot modify their Buffer Overflow Protection because they lack admin rights. Any idea when this will be fixed by McAfee?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    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

    8 Experts available now in Live!

    Get 1:1 Help Now