MessageBox.Show displays blank dialog box

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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?
 
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.
 
Back
Top