MessageBox.Show displays blank dialog box

G

Guest

In VB, when using the form:

MessageBox.Show("some text")

The result is a small blank dialog with a blank button.

If I specify the full set of parameters for the MessageBox.Show using the
following syntax:

MessageBox.Show("some text", "caption", MessageBoxButtons.OK,
MessageBoxIcon.None, MessageBoxDefaultButton.Button1,
MessageBoxOptions.DefaultDesktopOnly)

The messagebox is displayed as I would expect.

Documentation seems to indicate that the short form is OK, but I don't
understand correctly.

Scott Vesey
 
M

Morten Wennevik

Hi Scott,

Your code looks ok to me. Just putting a string in MessageBox.Show() is perfectly fine.
Do you get the same problem for all your programs? If so, have you tried reinstalling framework?
 
D

dotNetDeveloper

The problem seems to be with McAfee VirusScan version 8!!!

Try turning off the buffer overun protection from the VirusScan console.

Please contact McAfee so they will eventually resolve this with a patch.

Good luck.
 

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