MessageBox weirdness

  • Thread starter Thread starter primoz.kozuh
  • Start date Start date
P

primoz.kozuh

Whenever I try to show a message box with caption text that includes
word "Error", the message box shows only briefly. It doesn't wait for
user interaction and just returns DialogResult.No .

//This doesn't work properly
DialogResult res = MessageBox.Show("Some description.", "Some Error");

//This works just fine
DialogResult res = MessageBox.Show("Some description.", "Some
Failure");

Can anyone else reproduce this behavior. I'm using Windows 2000 SP4 and
..NET Framework 1.1 SP1.

Maybe this is just another way Microsoft tries to hide errors from
users. :)

Primoz Kozuh
 
After some tinkering I found out the cause for this behavior. This
happens only when Internet Explorer is running. I guess that Microsoft
uses this approach to stop error messages from appearing. But this
didn't happen on the XP system.

Cheers,
Primoz Kozuh
 
Everything works fine!

Could you post here a little bit more code to try to find out what's
happening.

Gaidar
 
IE, Tools->Manage Add-Ons, Disable all addons.
scan comp with antivirus. Remove yourself from Administrators group.
 
After some tinkering I found out the cause for this behavior. This
happens only when Internet Explorer is running. I guess that Microsoft
uses this approach to stop error messages from appearing. But this
didn't happen on the XP system.

Where do you show the messagebox? Do you show it in a browser control?
 
Back
Top