467,221 Members | 1,400 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,221 developers. It's quick & easy.

VC# 2003 - listBox & messageBox woes

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/

--
Jason L. Froebe
http://jfroebe.livejournal.com
Team Sybase
Jul 15 '06 #1
  • viewed: 1930
Share:
1 Reply
Jason L. Froebe wrote:
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.
------------

--
Jason L. Froebe
http://jfroebe.livejournal.com
Team Sybase
Jul 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Bill Brinkworth | last post: by
4 posts views Thread by questions | last post: by
2 posts views Thread by Jared Baszler | last post: by
14 posts views Thread by Andy | last post: by
reply views Thread by John Dann | last post: by
2 posts views Thread by rodchar | last post: by
5 posts views Thread by heddy | last post: by
7 posts views Thread by Randy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.