Invisible text in MessageBox (using VB .NET 2003)

I am using VB .NET 2003 to do my developing.  Over the past year or so as i have honed my skills, one thing is getting incresingly annoying.  Sometimes when I am testing a theory and want a message box to show the error text or a success message, the message text allocates the right amount of space, it is just invisible. The text on the MessageBox's OK button is invisible too. The caption on the MessageBox shows fine as does the icon. 

Anyone else experience this   Anyone know how to get around / fix this

    - Thanks in advance for any and all help in this matter.


Answer this question

Invisible text in MessageBox (using VB .NET 2003)

  • RonaldoRoma

    I found solution for these problem in other page:

    This problem is the result of a bug in McAfee 8.0i. McAfee has a patch to
    fix this problem that we downloaded from

    http://sdownload.nai.com/products/protected/hotfix/VSE80P09.Zip


    I have McAfee 8.0i installed, and after run this patch, I not have problems.

  • Jeremy Lew

    I have the same problem!. Additionnally, text in drop down list in comboboxes are not visible too, and when I have UI with Icons and cursors, some times these resources not load fine.

    I'm using PC with Windows XP SP2, and Windows 2000 SP4 Spanish versions.

    At today, I only see these problems in PCs where I have installed Visual Studio.

  • xelax

    I guess the easiest way to reproduce this issue is to create a new form with a single button that pops up a MessageBox with some kind of text. For example, using VB .NET 2003 code, to use a couple of MessageBox.Show() oprions:


    MessageBox.Show(ex2.Message, "Error Sending Mail", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)

    'by the way "Error" should not be blue to you in the editor

     



    If you run the program and push it's button within a minute or so of initial execution, you get, or at least I do, a message box with the expected caption and icon, but the message text is invisible and the btton on the message box is invisible. The wierdest part is that it allocates the space for the text, like if the error message was 100 words long, the Message box would be really big whereas if it was 2 words it would be standard/small in size.

    If anyone trys this, please post your result so I will know if I'm alone in this issue or not. Oh and if you know of a way to fix it or know of a KB article from microsoft explaining the issue, let me know in a post too.

     -thanks all


  • JaneTrev

    In general, it is a better idea to use Console.WriteLine() rather than use a MessageBox.  The output will display in the Output window in VS2003.  MessageBox can generate some lost-focus side affects.
  • Dariya

    I cannot reproduce this but there could be some resource limitations coming into play here. 

    First off, it looks like you may be showing an exception in the message box (assuming "ex2" is an exception).  If you're catching a StackOverflowException or an OutOfMemory exception there may not be adequate resources available to show the message box text. 

    Also, what platform are you running this on   Is it Win9x by any chance

     - mike

  • feelingfoel

    I've never seen this issue.  Do you have exact repro steps or is it sporadic

     - mike

  • Invisible text in MessageBox (using VB .NET 2003)