?
Solved

Empty Message Box in VB .NET 2003

Posted on 2004-09-22
12
Medium Priority
?
333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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 86

Expert Comment

by:Mike Tomlinson
ID: 12830707
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

752 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