Solved

Empty Message Box in VB .NET 2003

Posted on 2004-09-22
12
326 Views
Last Modified: 2012-06-27
When displaying a simple Message box with VB .NET 2003 I get an empty message box with no text and no text in the button.  The Title Bar does appear correct - Example

MessageBox.Show("Test","Title Test") produces a message box with "Title Test" in the title bar, no text in the box itself, and no text in what should be the OK button.  The OK button works and the message box goes away as it should.

I'm about 95% ceratin that this worked on the PC in question in the past.  XP SP2 was loaded on this PC, and I'm not certain that I have attempted a message box since.  Is this a known SP2 issue?  If someone has an answer and a link to the info it would be much appreciated.

Thanks in advance,

Steve
0
Comment
Question by:corwin_ranger
12 Comments
 

Author Comment

by:corwin_ranger
ID: 12128943
Anyone?
0
 
LVL 10

Expert Comment

by:123654789987
ID: 12130148
Try this

  MessageBox.Show("Test", "Title Test", _
           MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
0
 
LVL 2

Expert Comment

by:ahmadfuwad
ID: 12130331
try this

 MsgBox("Write your message here", MsgBoxStyle.Information, "Title name")
0
 

Author Comment

by:corwin_ranger
ID: 12133074
OK.  This is NOT a problem with the code listed.  While all of the suggestions made are valid code, so is the example I provided.  To help clarify, I did some testing this morning - Here are the results -

I compiled a simple app that has one button control. When clicked the button's code simply displays a Message box.  After compiling, I ran the application on several PCs.

1.  Windows 2000 SP4 PC with .Net Framework 1.1 - Worked as expected.

2.  Windows XP SP2 PC with .NET Framework 1.1 and VS .NET 2003 environment - Blank Message Box.

3.  Windows XP SP2 PC with .NET Framework 1.1 - Blank

4.  Windows XP SP1 PC with .NET Framework 1.1 - Blank.

On PC #2 above, I was able to do a system restore to a time prior to SP2 being installed and the messagebox worked properly.  I'm guessing that there is an OS patch or some other update is causing the problem.  I undid the restore and then simply uninstalled SP2, yet still the message box did not display correctly.

Thanks,

Steve
0
 

Author Comment

by:corwin_ranger
ID: 12137779
OK,

So, I think I've solved the problem here.  It seems that the one thing that links all the PCs that have the problem is that they all have McAfee VirusScan Enterprise 8.0 (New Version) installed on them.  This was a recent update.   The problem went away as soon as the application was uninstalled.  I'll be working with the McAfee folks and as soon as I have more info, I'll post it.

Thanks,

Steve

P.S.  Can I award the points to myself?  LOL
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12393677
PAQed, with points refunded (250)

Computer101
E-E Admin
0
 

Expert Comment

by:IngridK
ID: 12719383
It doesn't work even after installing SP4.
0
 

Expert Comment

by:electoralcommission
ID: 12782924
got the same problem myself - and we are also running the same virus scanner

only seems to be a problem on one machine, even though it has windows sp4 the same as other machines, and mcafee v8.0, same as other machines
0
 

Author Comment

by:corwin_ranger
ID: 12783072
After working with McAfee on this for quite a while, I've determined that the problem is the "Buffer Overflow" protection feature in the new 8.0 Product.  McAfee is working to solve the problem, but in the mean time, you can disable this feature and the problem goes away.
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 12830707
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now