Solved

Empty Message Box in VB .NET 2003

Posted on 2004-09-22
12
329 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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

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 85

Expert Comment

by:Mike Tomlinson
ID: 12830707
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 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