VC# 2003 - listBox & messageBox woes

J

Jason L. Froebe

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.

This only occurs on some computers. I suspect it has something to do
with the .NET SDK 1.1 but am not sure. I also remember that a couple
years ago of running into this problem and that there was a
workaround/fix. Sadly to say, I didn't bookmark it and can't find it.

This issue occurs with messageBoxes and listBoxes.

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();
}

jpeg of what I mean (no text is displayed):
http://pics.livejournal.com/jfroebe/pic/0000yta7/
 
J

Jason L. Froebe

Jason said:
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.

This only occurs on some computers. I suspect it has something to do
with the .NET SDK 1.1 but am not sure. I also remember that a couple
years ago of running into this problem and that there was a
workaround/fix. Sadly to say, I didn't bookmark it and can't find it.

This issue occurs with messageBoxes and listBoxes.

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();
}

jpeg of what I mean (no text is displayed):
http://pics.livejournal.com/jfroebe/pic/0000yta7/


It looks like it is a McAfee issue:

http://tinyurl.com/rcehv
------------
9. ISSUE:
List boxes and message boxes in .NET
applications do not display any content.

RESOLUTION:
List boxes and message boxes now display content
as expected.
 

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

Similar Threads


Top