473,785 Members | 2,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(o bject sender, System.EventArg s e)
{
listBox1.Items. Clear();

listBox1.BeginU pdate();
listBox1.Items. Add("test1");
listBox1.Items. Add("test2");
listBox1.Items. Add("test3");
listBox1.EndUpd ate();
listBox1.Refres h();
}

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 2155
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(o bject sender, System.EventArg s e)
{
listBox1.Items. Clear();

listBox1.BeginU pdate();
listBox1.Items. Add("test1");
listBox1.Items. Add("test2");
listBox1.Items. Add("test3");
listBox1.EndUpd ate();
listBox1.Refres h();
}

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
963
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 listbox). I can get one word in, but i can't make it go back and get the others and relist. Can you help? Here's what i have: Public Property word() As String Get Return m_Word End Get
4
1764
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 no response. Command: listBox.Items.Add( str ); However, it works when i type "MessageBox.Show( str);". A correct string displays in the popup message box. Can anyone help me?
2
7291
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 Click event. The reason being because sometime I change the selected item programmatically and sometimes the user selects the item. I'm wondering why selectedID, which is being set in SelectedValueChanged, is being displayed differently in the...
14
3174
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: Me.Dispose() Then run the project, double click on an item in the listbox to close the
0
1107
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) MyListBox..Items.Insert(PostMoveIndex, itemtext) This all works fine. I then decided that I wanted to display a longer text description of
2
1123
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 not letting me do that for some reason i keep getting an error saying: Collection was modified; enumeration operation may not execute. what's the best way to do the delete?
5
2300
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 populates the box. Next I added functionality to add data. This adds data to the DB and then forces the listbox to refresh by clearing it's contents and then re-running the populate code. However, when I add an item and do the refresh, the listbox...
2
4635
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 button2_Click(object sender, System.EventArgs e) { using(DirectoryEntry root = new DirectoryEntry("WinNT://node-10"))
7
2350
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 form with the listbox displays. I'm having trouble getting the listbox to reflect the additional entry. If I close the form and reopen it, the new item displays just fine, but I know that there is a more direct way to force the listbox to...
0
9483
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10096
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8982
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.