MessageBox weirdness

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
 
P

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
 
G

gaidar

Everything works fine!

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

Gaidar
 
G

Giedrius

IE, Tools->Manage Add-Ons, Disable all addons.
scan comp with antivirus. Remove yourself from Administrators group.
 
H

Herfried K. Wagner [MVP]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top