473,395 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
1 2141
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bill Brinkworth | last post by:
it's would be simple in Access, but seems to be harder in VB. I want to enter part of a word and search an access table, and display all instances of words containing those letters in a box (say a...
4
by: questions | last post by:
I create a Form and call another class (e.g. class1.cs). (class1.cs) contains a command to call back the Form to display a string variable in a listbox. However, it doesn't works. The listbox gets...
2
by: Jared Baszler | last post by:
I just wanted to write and ask why the below behavior is occuring. I've simply put a list box on a form and populated it with two items. I'm handling both the SelectedValueChanged event and the...
14
by: Andy | last post by:
Hi to All, I found the following issue, is this a bug? Create a new project and, in the main form, add a listbox with a few sample items. In the DoubleClick event of the listbox, add: ...
0
by: John Dann | last post by:
I had a listbox that allows reordering of listed items using the mouse to drag and drop. In the DragDrop event handler, the key instructions are: MyListBox..Items.RemoveAt(PreMoveIndex)...
2
by: rodchar | last post by:
hey all, i have a listbox on my .aspx page and when i highlight an item in the listbox should i just be able to loop thru the items collection of the listbox and delete what is selected? it's...
5
by: heddy | last post by:
I have a listbox that gets populated in code by a reader result set from a stored proc on SQL Server 2005. In building this I created a set of test rows in the DB and the code runs fine and...
2
by: kannabiran | last post by:
Hi, Im using C# Windows.Net 2003,im using windows 2000 operating system.. i retrieved all the available windows user by using the following code and listed in the listbox.. private void...
7
by: Randy | last post by:
Hi, I've got a listbox on a form that gets updated by opening another form for data entry. Once the user enters the new item name and clicks "accept", the data entry form closes and the original...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.