Hello,
I have a DELL computer with a newly installed Windows XP with SP2 and all updates from WindowsUpdate, I have a very simple application: one TextBox , one ListBox and a Button, when I press the Button the text on the TextBox is added as an Item to the ListBox and in fact the Item is added to the ListBox but it doesn't show any text.
Then I added another Button and a FileOpen Dialog, if I press the Add button the application behaves just like before but when I press the other button (it just shows the FileOpen dialog) then the text on the ListBox appear and the application starts working as it should be.
I have tested this on 2 other different computers and there is no problem there.
More details:
Dell Optiplex 170L
When I installed FrameWork SP1 the "Restart..." MessageBox at the end didn't have any text on it (including the buttons).
OS Language: English with a Spanisn (Traditional Sort) Keyboard.
Does any one have an idea on how to solve this
Thanks

a bug on ListBox?
Saileyee Thakur
Well at least now I know I'm not along.
I didn't get any answer other than the ones you may see on the site.
But I'll tell you what I did: Removing the SP1 for dotNETFx 1.1 will solve the problem with icons on FileDialogs but I'm still unable to display correctly the program icons. I ended changing the ListBox for a ListView and losing the data binding functionality. Even formatting and reinstalling the whole Windows will not solve the problem (I did it).
Just as a matter of curiosity: do you also have a DELL Optiplex 170L
Please help with my query.
tomandlis
Marjorie K
Nand Kumar
It gets crazier! I have since then re-enabled mcafee, and the problem has vanished!!! I can't reproduce no matter what I do. I must be losing my mind.
Bottom line, make sure you try it with VS turned back on and see if the problem has dissappeared. You sure don't want to be running w/o VS these days....
Peace,
-Hugh
E. Willeke
Thanks alot... I was going crazy and was just about to reinstall Windows when i found this thread... As soon as i disabled McAfee everything worked just fine!
lexluthor
I'll turn that on again with VS open to see what happens....
See you
JoeRandom
Sorry I took so long to reply; I was out for a few days.
Check out this update on Microsoft (http://support.microsoft.com/kb/891861). I think this is what is causing the problem, but I have not had time to install the v2 update to validate. I will let you know what happens when I do.
Abrazos!
Hugh
DraKKfarD
By the way, there is a new security update for fx on the web.
Bye,
Juan Carlos
jeremys27
Thanks!
Sergey Vdovenko
Yes, I am running on a Dell Optiplex 240, but I can't imagine how we could be affected in this way.
Did you say you re-installed Windows and the problem is still there That sounds very bad. I am getting depressed.
I am still looking for a solution. If I find one, I will send you a note....
Regards,
Hugh
Phoenixsuper
using
System;using
System.Drawing;using
System.Collections;using
System.ComponentModel;using
System.Windows.Forms;using
System.Data;namespace
Prueba{
/// <summary> /// Summary description for Form1. /// </summary> public class Form1 : System.Windows.Forms.Form{
private System.Windows.Forms.Button button1; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Button button2; private System.Windows.Forms.OpenFileDialog openFileDialog1; private System.Windows.Forms.ListBox listBox1; /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.Container components = null; public Form1(){
// // Required for Windows Form Designer support //InitializeComponent();
// // TODO: Add any constructor code after InitializeComponent call //}
/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ){
if( disposing ){
if (components != null){
components.Dispose();
}
}
base.Dispose( disposing );}
#region
Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent(){
System.Resources.ResourceManager resources =
new System.Resources.ResourceManager(typeof(Form1)); this.button1 = new System.Windows.Forms.Button(); this.textBox1 = new System.Windows.Forms.TextBox(); this.button2 = new System.Windows.Forms.Button(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.listBox1 = new System.Windows.Forms.ListBox(); this.SuspendLayout(); // // button1 // this.button1.AccessibleDescription = resources.GetString("button1.AccessibleDescription"); this.button1.AccessibleName = resources.GetString("button1.AccessibleName"); this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button1.Anchor"))); this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage"))); this.button1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button1.Dock"))); this.button1.Enabled = ((bool)(resources.GetObject("button1.Enabled"))); this.button1.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button1.FlatStyle"))); this.button1.Font = ((System.Drawing.Font)(resources.GetObject("button1.Font"))); this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image"))); this.button1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.ImageAlign"))); this.button1.ImageIndex = ((int)(resources.GetObject("button1.ImageIndex"))); this.button1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button1.ImeMode"))); this.button1.Location = ((System.Drawing.Point)(resources.GetObject("button1.Location"))); this.button1.Name = "button1"; this.button1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button1.RightToLeft"))); this.button1.Size = ((System.Drawing.Size)(resources.GetObject("button1.Size"))); this.button1.TabIndex = ((int)(resources.GetObject("button1.TabIndex"))); this.button1.Text = resources.GetString("button1.Text"); this.button1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.TextAlign"))); this.button1.Visible = ((bool)(resources.GetObject("button1.Visible"))); this.button1.Click += new System.EventHandler(this.button1_Click); // // textBox1 // this.textBox1.AccessibleDescription = resources.GetString("textBox1.AccessibleDescription"); this.textBox1.AccessibleName = resources.GetString("textBox1.AccessibleName"); this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("textBox1.Anchor"))); this.textBox1.AutoSize = ((bool)(resources.GetObject("textBox1.AutoSize"))); this.textBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("textBox1.BackgroundImage"))); this.textBox1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("textBox1.Dock"))); this.textBox1.Enabled = ((bool)(resources.GetObject("textBox1.Enabled"))); this.textBox1.Font = ((System.Drawing.Font)(resources.GetObject("textBox1.Font"))); this.textBox1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("textBox1.ImeMode"))); this.textBox1.Location = ((System.Drawing.Point)(resources.GetObject("textBox1.Location"))); this.textBox1.MaxLength = ((int)(resources.GetObject("textBox1.MaxLength"))); this.textBox1.Multiline = ((bool)(resources.GetObject("textBox1.Multiline"))); this.textBox1.Name = "textBox1"; this.textBox1.PasswordChar = ((char)(resources.GetObject("textBox1.PasswordChar"))); this.textBox1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("textBox1.RightToLeft"))); this.textBox1.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("textBox1.ScrollBars"))); this.textBox1.Size = ((System.Drawing.Size)(resources.GetObject("textBox1.Size"))); this.textBox1.TabIndex = ((int)(resources.GetObject("textBox1.TabIndex"))); this.textBox1.Text = resources.GetString("textBox1.Text"); this.textBox1.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("textBox1.TextAlign"))); this.textBox1.Visible = ((bool)(resources.GetObject("textBox1.Visible"))); this.textBox1.WordWrap = ((bool)(resources.GetObject("textBox1.WordWrap"))); // // button2 // this.button2.AccessibleDescription = resources.GetString("button2.AccessibleDescription"); this.button2.AccessibleName = resources.GetString("button2.AccessibleName"); this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button2.Anchor"))); this.button2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button2.BackgroundImage"))); this.button2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button2.Dock"))); this.button2.Enabled = ((bool)(resources.GetObject("button2.Enabled"))); this.button2.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button2.FlatStyle"))); this.button2.Font = ((System.Drawing.Font)(resources.GetObject("button2.Font"))); this.button2.Image = ((System.Drawing.Image)(resources.GetObject("button2.Image"))); this.button2.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button2.ImageAlign"))); this.button2.ImageIndex = ((int)(resources.GetObject("button2.ImageIndex"))); this.button2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button2.ImeMode"))); this.button2.Location = ((System.Drawing.Point)(resources.GetObject("button2.Location"))); this.button2.Name = "button2"; this.button2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button2.RightToLeft"))); this.button2.Size = ((System.Drawing.Size)(resources.GetObject("button2.Size"))); this.button2.TabIndex = ((int)(resources.GetObject("button2.TabIndex"))); this.button2.Text = resources.GetString("button2.Text"); this.button2.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button2.TextAlign"))); this.button2.Visible = ((bool)(resources.GetObject("button2.Visible"))); this.button2.Click += new System.EventHandler(this.button2_Click); // // openFileDialog1 // this.openFileDialog1.Filter = resources.GetString("openFileDialog1.Filter"); this.openFileDialog1.Title = resources.GetString("openFileDialog1.Title"); // // listBox1 // this.listBox1.AccessibleDescription = resources.GetString("listBox1.AccessibleDescription"); this.listBox1.AccessibleName = resources.GetString("listBox1.AccessibleName"); this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("listBox1.Anchor"))); this.listBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("listBox1.BackgroundImage"))); this.listBox1.ColumnWidth = ((int)(resources.GetObject("listBox1.ColumnWidth"))); this.listBox1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("listBox1.Dock"))); this.listBox1.Enabled = ((bool)(resources.GetObject("listBox1.Enabled"))); this.listBox1.Font = ((System.Drawing.Font)(resources.GetObject("listBox1.Font"))); this.listBox1.HorizontalExtent = ((int)(resources.GetObject("listBox1.HorizontalExtent"))); this.listBox1.HorizontalScrollbar = ((bool)(resources.GetObject("listBox1.HorizontalScrollbar"))); this.listBox1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("listBox1.ImeMode"))); this.listBox1.IntegralHeight = ((bool)(resources.GetObject("listBox1.IntegralHeight"))); this.listBox1.ItemHeight = ((int)(resources.GetObject("listBox1.ItemHeight"))); this.listBox1.Location = ((System.Drawing.Point)(resources.GetObject("listBox1.Location"))); this.listBox1.Name = "listBox1"; this.listBox1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("listBox1.RightToLeft"))); this.listBox1.ScrollAlwaysVisible = ((bool)(resources.GetObject("listBox1.ScrollAlwaysVisible"))); this.listBox1.Size = ((System.Drawing.Size)(resources.GetObject("listBox1.Size"))); this.listBox1.TabIndex = ((int)(resources.GetObject("listBox1.TabIndex"))); this.listBox1.Visible = ((bool)(resources.GetObject("listBox1.Visible"))); // // Form1 // this.AccessibleDescription = resources.GetString("$this.AccessibleDescription"); this.AccessibleName = resources.GetString("$this.AccessibleName"); this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize"))); this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll"))); this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin"))); this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize"))); this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize"))); this.Controls.Add(this.listBox1); this.Controls.Add(this.button2); this.Controls.Add(this.textBox1); this.Controls.Add(this.button1); this.Enabled = ((bool)(resources.GetObject("$this.Enabled"))); this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode"))); this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location"))); this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize"))); this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize"))); this.Name = "Form1"; this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft"))); this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition"))); this.Text = resources.GetString("$this.Text"); this.ResumeLayout(false);}
#endregion
/// <summary> /// The main entry point for the application. /// </summary>[STAThread]
static void Main(){
Application.EnableVisualStyles();
Application.Run(
new Form1());}
private void button1_Click(object sender, System.EventArgs e){
listBox1.Items.Add( textBox1.Text );
}
private void button2_Click(object sender, System.EventArgs e){
openFileDialog1.ShowDialog(
this);}
}
}
Azreany
You are a genius! I opened the McAfee console and deactivated Buffer underrun/overrun proteccion and all problems desapeared! Even the one with icons!
Do you think there could be a patch some where to solve this
Thanks a lot!
Juan Carlos
lcsantos85
I found something! If I disable my VirusScan (McAffee 8.0), the problems go away. Listbox works, combobox works, and openfiledialog works, too! Obviously, something is going on with the virus checking software.
I am running Win2000 w/ Rollup SP1 applied. This sp had some fixes that address buffer overruns in Listbox & Combobox. McAffee may be exploiting this to check for overrun/underrun, but I am just guessing.
In any case, if you are running a virus scan tool, turn it off and try your test again.
Regards,
Hugh