VC# 2003 and listBox woes

    Date: 07/14/06 (C Sharp)    Keywords: no keywords

    Visual C# 2003, with latest .NET 1.1 SDK patch.

    I've created a simple test app containing a list box and a button.  When the button is clicked on, it adds three items to the listBox and refreshes.  I can see the refresh, but no text is viewable.  Yes, the text is black on white.  I've highlighted an entry to show that the text just isn't showing up.

    Anyone have any idea?  I've tried with and without the Refresh() - which should be called automatically by EndUpdate() anyways.

    private void button1_Click(object sender, System.EventArgs e)
    {
    listBox1.Items.Clear();

    listBox1.BeginUpdate();
    listBox1.Items.Add("test1");
    listBox1.Items.Add("test2");
    listBox1.Items.Add("test3");
    listBox1.EndUpdate();
    listBox1.Refresh();
    }


    Source: http://community.livejournal.com/csharp/70385.html

« SmartPhone 2003/Windows... || Database Binary Conversion »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home